]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sgienc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / sgienc.c
index 73e1a678b522c842b7a0963a5aeb86a5b30c1a66..b88f6c384346a04335fd26c8ab6dc0c8827ee94f 100644 (file)
@@ -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;