diff options
Diffstat (limited to 'libavcodec/targaenc.c')
-rw-r--r-- | libavcodec/targaenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c index 048183f7b6..a85400f958 100644 --- a/libavcodec/targaenc.c +++ b/libavcodec/targaenc.c @@ -150,8 +150,12 @@ static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt, static av_cold int targa_encode_init(AVCodecContext *avctx) { +#if FF_API_CODED_FRAME +FF_DISABLE_DEPRECATION_WARNINGS avctx->coded_frame->key_frame = 1; avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; +FF_ENABLE_DEPRECATION_WARNINGS +#endif return 0; } |