diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-09 19:41:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-09 19:43:30 +0200 |
commit | 398e3a591fb8739a5af72f802153700fefa92098 (patch) | |
tree | ae891e1a82058b2b4ec5f3336bf3a23b1370380d /libavcodec/smvjpegdec.c | |
parent | 3554c2fafc46861624cbb634e175277b26eb1664 (diff) | |
download | ffmpeg-398e3a591fb8739a5af72f802153700fefa92098.tar.gz |
avcodec: replace uses of deprecated avcodec_set_dimensions()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/smvjpegdec.c')
-rw-r--r-- | libavcodec/smvjpegdec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c index f883ecf80a..e546c3e49c 100644 --- a/libavcodec/smvjpegdec.c +++ b/libavcodec/smvjpegdec.c @@ -153,8 +153,11 @@ static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_siz /* We shouldn't get here if frames_per_jpeg <= 0 because this was rejected in init */ - avcodec_set_dimensions(avctx, mjpeg_data->width, - mjpeg_data->height / s->frames_per_jpeg); + ret = ff_set_dimensions(avctx, mjpeg_data->width, mjpeg_data->height / s->frames_per_jpeg); + if (ret < 0) { + av_log(s, AV_LOG_ERROR, "Failed to set dimensions\n"); + return ret; + } if (*data_size) { s->picture[1]->extended_data = NULL; |