summaryrefslogtreecommitdiffstats
path: root/libavcodec/sgienc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/sgienc.c')
-rw-r--r--libavcodec/sgienc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c
index 73e1a67..b88f6c3 100644
--- a/libavcodec/sgienc.c
+++ b/libavcodec/sgienc.c
@@ -49,8 +49,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
unsigned int bytes_per_channel, pixmax, put_be;
unsigned char *end_buf;
+#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
width = avctx->width;
height = avctx->height;
OpenPOWER on IntegriCloud