summaryrefslogtreecommitdiffstats
path: root/libavcodec/gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r--libavcodec/gif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index cb1c71b..a8c7f37 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -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)
OpenPOWER on IntegriCloud