diff options
author | James Almer <jamrial@gmail.com> | 2017-03-25 21:35:15 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-03-25 21:37:05 -0300 |
commit | f5c8d004c28d930d780c9164f7ed6005b88b9be5 (patch) | |
tree | 5b7bb3096f4aa58c8ecd710b5dc59e7d1c2259ca /libavcodec/pngenc.c | |
parent | 2f05d18ee2c74e4c3619bf2ef6a64f686519f3c7 (diff) | |
download | ffmpeg-f5c8d004c28d930d780c9164f7ed6005b88b9be5.tar.gz |
avcodec: stop using deprecated codec flags
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r-- | libavcodec/pngenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index f67a546f95..69b4495404 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -873,7 +873,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, if (!pict) return AVERROR(EINVAL); - s->bytestream = s->extra_data = av_malloc(FF_MIN_BUFFER_SIZE); + s->bytestream = s->extra_data = av_malloc(AV_INPUT_BUFFER_MIN_SIZE); if (!s->extra_data) return AVERROR(ENOMEM); @@ -1167,7 +1167,7 @@ AVCodec ff_apng_encoder = { .init = png_enc_init, .close = png_enc_close, .encode2 = encode_apng, - .capabilities = CODEC_CAP_DELAY, + .capabilities = AV_CODEC_CAP_DELAY, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB48BE, AV_PIX_FMT_RGBA64BE, |