[FFmpeg-cvslog] avcodec/utils: Print warning if avcodec_set_dimensions() failed
Michael Niedermayer
git at videolan.org
Wed Dec 11 15:38:38 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 11 15:28:27 2013 +0100| [b6eee405ffd9b212d5093e00bfb401df4f4b4a2f] | committer: Michael Niedermayer
avcodec/utils: Print warning if avcodec_set_dimensions() failed
Fixes CID1135744
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b6eee405ffd9b212d5093e00bfb401df4f4b4a2f
---
libavcodec/utils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index dd3f112..59f7d75 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
More information about the ffmpeg-cvslog
mailing list