mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
qsvenc: avoid dereferencing the null pointer
The variable AVFrame *frame could be a null pointer, now add a null pointer check to avoid dereferencing the null pointer. Signed-off-by: Tong Wu <tong1.wu@intel.com>
This commit is contained in:
parent
d05ca3d779
commit
a0a2ccd55d
@ -1736,7 +1736,7 @@ static int encode_frame(AVCodecContext *avctx, QSVEncContext *q,
|
||||
goto free;
|
||||
}
|
||||
|
||||
if (ret == MFX_WRN_INCOMPATIBLE_VIDEO_PARAM && frame->interlaced_frame)
|
||||
if (ret == MFX_WRN_INCOMPATIBLE_VIDEO_PARAM && frame && frame->interlaced_frame)
|
||||
print_interlace_msg(avctx, q);
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user