Signed-off-by: Nablet Developer <sdk@nablet.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
... | ... |
@@ -53,7 +53,7 @@ static int qsv_h264_set_encode_ctrl(AVCodecContext *avctx, |
53 | 53 |
int res; |
54 | 54 |
|
55 | 55 |
res = ff_alloc_a53_sei(frame, sizeof(mfxPayload) + 2, (void**)&payload, &sei_size); |
56 |
- if (res < 0) |
|
56 |
+ if (res < 0 || !payload) |
|
57 | 57 |
return res; |
58 | 58 |
|
59 | 59 |
sei_data = (mfxU8*)(payload + 1); |