]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/utils: Print warning if avcodec_set_dimensions() failed
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Dec 2013 14:28:27 +0000 (15:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 11 Dec 2013 14:28:27 +0000 (15:28 +0100)
Fixes CID1135744
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c

index dd3f112ef88106493bc8486205c5615c227b0300..59f7d7563f7bceb05e50628cf150032431a301cd 100644 (file)
@@ -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