Re: [FFmpeg-devel] [PATCH] qsvenc: avoid dereferencing the null pointer

2022-02-27 Thread Xiang, Haihao
On Thu, 2022-02-24 at 10:27 +0800, Tong Wu wrote: > 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 > --- > libavcodec/qsvenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > dif

[FFmpeg-devel] [PATCH] qsvenc: avoid dereferencing the null pointer

2022-02-23 Thread Tong Wu
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 --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 07be4287b7