diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-11 15:28:27 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-11 15:28:27 +0100 |
commit | b6eee405ffd9b212d5093e00bfb401df4f4b4a2f (patch) | |
tree | 34248bd281ea5d3badbd1f972b54656560583022 /libavcodec | |
parent | 0f65503799c89f7473f77df8494f9380e3067a6b (diff) | |
download | ffmpeg-b6eee405ffd9b212d5093e00bfb401df4f4b4a2f.tar.gz |
avcodec/utils: Print warning if avcodec_set_dimensions() failed
Fixes CID1135744
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index dd3f112ef8..59f7d7563f 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -222,7 +222,10 @@ unsigned avcodec_get_edge_width(void) #if FF_API_SET_DIMENSIONS void avcodec_set_dimensions(AVCodecContext *s, int width, int height) { - ff_set_dimensions(s, width, height); + int ret = ff_set_dimensions(s, width, height); + if (ret < 0) { + av_log(s, AV_LOG_WARNING, "Failed to set dimensions %d %d\n", width, height); + } } #endif |