X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Faliaspixenc.c;h=63016afc636633e655938bcebc655a4c1134054f;hb=40cf1bbacc6220a0aa6bed5c331871d43f9ce370;hp=5e3bcb4c981c83ad768fa28ccb2a2042bd46a32e;hpb=5d3addb937946eca5391e40b5e6308e74ac6f77b;p=ffmpeg diff --git a/libavcodec/aliaspixenc.c b/libavcodec/aliaspixenc.c index 5e3bcb4c981..63016afc636 100644 --- a/libavcodec/aliaspixenc.c +++ b/libavcodec/aliaspixenc.c @@ -33,8 +33,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, int width, height, bits_pixel, i, j, length, ret; uint8_t *in_buf, *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;