diff options
Diffstat (limited to 'libavcodec/xwdenc.c')
-rw-r--r-- | libavcodec/xwdenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/xwdenc.c b/libavcodec/xwdenc.c index 97a3eb8..e346b5c 100644 --- a/libavcodec/xwdenc.c +++ b/libavcodec/xwdenc.c @@ -146,8 +146,12 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } buf = pkt->data; +#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 bytestream_put_be32(&buf, header_size); bytestream_put_be32(&buf, XWD_VERSION); // file version |