avformat/rtmpproto: Fix RTMP control message handling error in listen mode.
[ffmpeg.git] / libavcodec / gifdec.c
index 20ae903..48345db 100644 (file)
@@ -462,7 +462,11 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, A
     bytestream2_init(&s->gb, avpkt->data, avpkt->size);
 
     s->frame->pts     = avpkt->pts;
+#if FF_API_PKT_PTS
+FF_DISABLE_DEPRECATION_WARNINGS
     s->frame->pkt_pts = avpkt->pts;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
     s->frame->pkt_dts = avpkt->dts;
     av_frame_set_pkt_duration(s->frame, avpkt->duration);