]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/jpeglsenc.c
Deprecate avctx.coded_frame
[ffmpeg] / libavcodec / jpeglsenc.c
index 30213948c9e8e9038186e4fecf532e7f7177f4a7..47c420fc50e4eeebc2e66bca3259b980b7a0cbbc 100644 (file)
@@ -415,8 +415,12 @@ memfail:
 
 static av_cold int encode_init_ls(AVCodecContext *ctx)
 {
+#if FF_API_CODED_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
     ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
     ctx->coded_frame->key_frame = 1;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
     if (ctx->pix_fmt != AV_PIX_FMT_GRAY8  &&
         ctx->pix_fmt != AV_PIX_FMT_GRAY16 &&