]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/gif.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / gif.c
index cb1c71bd377a60b459d03236202416565ac49799..a8c7f37d7f99c3ccd2b590fa967850539eff7add 100644 (file)
@@ -130,8 +130,12 @@ static av_cold int gif_encode_init(AVCodecContext *avctx)
 {
     GIFContext *s = avctx->priv_data;
 
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
     avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     avctx->coded_frame->key_frame = 1;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
     s->lzw = av_mallocz(ff_lzw_encode_state_size);
     if (!s->lzw)