aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-04 00:46:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-04 00:46:36 +0200
commitf339ebc1ff0d5db9df156f3bb9b8584568bb5b9d (patch)
treee5375a71582acd5c01d3a29e8da38ca4eee648d2 /libavcodec/utils.c
parentf91b7d803019b6fa856216d6e2ac2215d5e99073 (diff)
downloadffmpeg-f339ebc1ff0d5db9df156f3bb9b8584568bb5b9d.tar.gz
lavc/utils: print error message on get_buffer related errors
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 3d4b0c7467..668965a237 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -440,8 +440,10 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
return -1;
}
- if(av_image_check_size(w, h, 0, s) || s->pix_fmt<0)
+ if(av_image_check_size(w, h, 0, s) || s->pix_fmt<0) {
+ av_log(s, AV_LOG_ERROR, "video_get_buffer: image parameters invalid\n");
return -1;
+ }
if (!avci->buffer) {
avci->buffer = av_mallocz((INTERNAL_BUFFER_SIZE+1) *