diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-10-27 10:02:26 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-10-31 20:14:16 +0100 |
commit | 2e0ab4d314b1ef0c5eb3d8987ce2be4e86cb535f (patch) | |
tree | e044954828b53f55d7259c271b64b69f4b67eb74 /libavcodec/vp5.c | |
parent | b53febc1c0da9729d7b55148c0097985d83e4cc4 (diff) | |
download | ffmpeg-2e0ab4d314b1ef0c5eb3d8987ce2be4e86cb535f.tar.gz |
vp56: stop using deprecated avcodec_set_dimensions
Diffstat (limited to 'libavcodec/vp5.c')
-rw-r--r-- | libavcodec/vp5.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/vp5.c b/libavcodec/vp5.c index f4d1c7feea..b60928241d 100644 --- a/libavcodec/vp5.c +++ b/libavcodec/vp5.c @@ -28,6 +28,7 @@ #include "avcodec.h" #include "get_bits.h" +#include "internal.h" #include "vp56.h" #include "vp56data.h" @@ -67,7 +68,9 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size, if (!s->macroblocks || /* first frame */ 16*cols != s->avctx->coded_width || 16*rows != s->avctx->coded_height) { - avcodec_set_dimensions(s->avctx, 16*cols, 16*rows); + int ret = ff_set_dimensions(s->avctx, 16 * cols, 16 * rows); + if (ret < 0) + return ret; return VP56_SIZE_CHANGE; } } else if (!s->macroblocks) |