get_buffers: Check that pix_fmt is not NONE.
This is somewhat redundant as no decoder should call get_buffer() with such argument. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -414,7 +414,7 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(av_image_check_size(w, h, 0, s))
|
||||
if(av_image_check_size(w, h, 0, s) || s->pix_fmt<0)
|
||||
return -1;
|
||||
|
||||
if (!avci->buffer) {
|
||||
|
||||
Reference in New Issue
Block a user