mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00:00
avcodec/qsvenc_h264: fix segfault when a53 SEI is not available
Signed-off-by: Nablet Developer <sdk@nablet.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a6bce3ca90
commit
8d858674fd
@ -53,7 +53,7 @@ static int qsv_h264_set_encode_ctrl(AVCodecContext *avctx,
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
res = ff_alloc_a53_sei(frame, sizeof(mfxPayload) + 2, (void**)&payload, &sei_size);
|
res = ff_alloc_a53_sei(frame, sizeof(mfxPayload) + 2, (void**)&payload, &sei_size);
|
||||||
if (res < 0)
|
if (res < 0 || !payload)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
sei_data = (mfxU8*)(payload + 1);
|
sei_data = (mfxU8*)(payload + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user