You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/utils: Check all data[] pointers in video_get_buffer() not just the first
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -656,8 +656,8 @@ static int video_get_buffer(AVCodecContext *s, AVFrame *pic)
|
|||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pic->format);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pic->format);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (pic->data[0]) {
|
if (pic->data[0] || pic->data[1] || pic->data[2] || pic->data[3]) {
|
||||||
av_log(s, AV_LOG_ERROR, "pic->data[0]!=NULL in avcodec_default_get_buffer\n");
|
av_log(s, AV_LOG_ERROR, "pic->data[*]!=NULL in avcodec_default_get_buffer\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user