[FFmpeg-cvslog] avcodec/c93: stop using deprecated avcodec_set_dimensions
Paul B Mahol
git at videolan.org
Tue Nov 5 13:25:10 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 5 12:24:39 2013 +0000| [7722ae35eb631763eab6539af3a14c77425c43e6] | committer: Paul B Mahol
avcodec/c93: 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=7722ae35eb631763eab6539af3a14c77425c43e6
---
libavcodec/c93.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/c93.c b/libavcodec/c93.c
index f25368b..9ac804e 100644
--- a/libavcodec/c93.c
+++ b/libavcodec/c93.c
@@ -127,7 +127,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
uint8_t *out;
int stride, ret, i, x, y, b, bt = 0;
- avcodec_set_dimensions(avctx, WIDTH, HEIGHT);
+ if ((ret = ff_set_dimensions(avctx, WIDTH, HEIGHT)) < 0)
+ return ret;
c93->currentpic ^= 1;
More information about the ffmpeg-cvslog
mailing list