aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-11-05 12:26:58 +0000
committerPaul B Mahol <onemda@gmail.com>2013-11-05 12:26:58 +0000
commit1a244c22ea839f92e8a0e307a4965d7119534dad (patch)
treeab531e04a763ff88258902d83e9d2e67db25f806
parent7722ae35eb631763eab6539af3a14c77425c43e6 (diff)
downloadffmpeg-1a244c22ea839f92e8a0e307a4965d7119534dad.tar.gz
avcodec/brender_pix: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/brender_pix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c
index e1f5d48944..1089a389d0 100644
--- a/libavcodec/brender_pix.c
+++ b/libavcodec/brender_pix.c
@@ -131,8 +131,8 @@ static int brpix_decode_frame(AVCodecContext *avctx,
if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
return AVERROR_INVALIDDATA;
- if (hdr.width != avctx->width || hdr.height != avctx->height)
- avcodec_set_dimensions(avctx, hdr.width, hdr.height);
+ if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
+ return ret;
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
return ret;