diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-10-07 12:55:50 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-10-07 13:03:36 +0200 |
commit | 3f9137c57d2344d7613f134128235c18edcede95 (patch) | |
tree | cc4bfcc63bd6080c74d5cb526f286a1f4c96d4df /libavcodec/audiotoolboxdec.c | |
parent | 04a3577263782cd6d70722d4ae18d75fee03dbc4 (diff) | |
parent | 32c8359093d1ff4f45ed19518b449b3ac3769d27 (diff) | |
download | ffmpeg-streaming-3f9137c57d2344d7613f134128235c18edcede95.zip ffmpeg-streaming-3f9137c57d2344d7613f134128235c18edcede95.tar.gz |
Merge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'
* commit '32c8359093d1ff4f45ed19518b449b3ac3769d27':
lavc: export the timestamps when decoding in AVFrame.pts
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavcodec/audiotoolboxdec.c')
-rw-r--r-- | libavcodec/audiotoolboxdec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 1097668..3066d47 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -554,7 +554,12 @@ static int ffat_decode(AVCodecContext *avctx, void *data, ffat_copy_samples(avctx, frame); *got_frame_ptr = 1; if (at->last_pts != AV_NOPTS_VALUE) { + frame->pts = at->last_pts; +#if FF_API_PKT_PTS +FF_DISABLE_DEPRECATION_WARNINGS frame->pkt_pts = at->last_pts; +FF_ENABLE_DEPRECATION_WARNINGS +#endif at->last_pts = avpkt->pts; } } else if (ret && ret != 1) { |