[FFmpeg-cvslog] avcodec/brender_pix: stop using deprecated avcodec_set_dimensions
Paul B Mahol
git at videolan.org
Tue Nov 5 13:28:19 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 5 12:26:58 2013 +0000| [1a244c22ea839f92e8a0e307a4965d7119534dad] | committer: Paul B Mahol
avcodec/brender_pix: stop using deprecated avcodec_set_dimensions
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a244c22ea839f92e8a0e307a4965d7119534dad
---
libavcodec/brender_pix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/brender_pix.c b/libavcodec/brender_pix.c
index e1f5d48..1089a38 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;
More information about the ffmpeg-cvslog
mailing list