diff options
author | Anton Khirnov | 2013-10-27 10:02:26 +0100 |
---|---|---|
committer | Anton Khirnov | 2013-10-31 20:14:15 +0100 |
commit | d184cd1dacf0997687c1ce9d82e9bbbcea1102ac (patch) | |
tree | 4bc9888ed515c36c5db6c63f7834c0a4a89685f7 | |
parent | 317d6a150392c96238d5e124524b12ba340f36e6 (diff) |
ivi_common: stop using deprecated avcodec_set_dimensions
-rw-r--r-- | libavcodec/ivi_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 7ca53b7b0d..8c5d7f32c3 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -1015,7 +1015,10 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, av_log(avctx, AV_LOG_ERROR, "Buffer contains IP frames!\n"); } - avcodec_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height); + result = ff_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height); + if (result < 0) + return result; + if ((result = ff_get_buffer(avctx, frame, 0)) < 0) { av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return result; |