Commit f339ebc1 authored by Michael Niedermayer's avatar Michael Niedermayer

lavc/utils: print error message on get_buffer related errors

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f91b7d80
...@@ -440,8 +440,10 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic) ...@@ -440,8 +440,10 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
return -1; 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; return -1;
}
if (!avci->buffer) { if (!avci->buffer) {
avci->buffer = av_mallocz((INTERNAL_BUFFER_SIZE+1) * avci->buffer = av_mallocz((INTERNAL_BUFFER_SIZE+1) *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment