X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Faudiotoolboxdec.c;h=3066d47b11decc0f59cfe10983c3f1fc9dbd3ad8;hb=4d92bd3ca2252b461b352bc2af3ebeabe5394715;hp=10976684370393a0f7fbc604962702e8f5ce62ba;hpb=7c8bf2dc2ba02312e7bee8f7df7994c3d8587407;p=ffmpeg diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 10976684370..3066d47b11d 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) {