diff options
Diffstat (limited to 'libavcodec/sgienc.c')
-rw-r--r-- | libavcodec/sgienc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c index 14efabeb03..a16d079562 100644 --- a/libavcodec/sgienc.c +++ b/libavcodec/sgienc.c @@ -50,8 +50,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; |