You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user