mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
Merge commit '80f955c90867561dcce769216bc497e13281eb38'
* commit '80f955c90867561dcce769216bc497e13281eb38': vda: Check the correct pointer for buffer allocation Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
daff49ccf3
@ -409,7 +409,7 @@ static int vda_h264_end_frame(AVCodecContext *avctx)
|
||||
sizeof(vda->frame),
|
||||
release_buffer, NULL,
|
||||
AV_BUFFER_FLAG_READONLY);
|
||||
if (!frame->buf)
|
||||
if (!frame->buf[0])
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
frame->data[3] = (uint8_t*)vda->frame;
|
||||
|
Loading…
Reference in New Issue
Block a user