Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: replace assert0 with an error return when pict_type is uninitialized

2018-12-05 Thread Carl Eugen Hoyos
2018-12-05 6:37 GMT+01:00, Li, Zhong : >> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf >> Of Linjie Fu >> Sent: Monday, December 3, 2018 4:34 PM >> To: ffmpeg-devel@ffmpeg.org >> Cc: Fu, Linjie >> Subject: [FFmpeg-devel]

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc: replace assert0 with an error return when pict_type is uninitialized

2018-12-04 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Linjie Fu > Sent: Monday, December 3, 2018 4:34 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Fu, Linjie > Subject: [FFmpeg-devel] [PATCH] lavc/qsvenc: replace assert0 with an error > return when pict_

[FFmpeg-devel] [PATCH] lavc/qsvenc: replace assert0 with an error return when pict_type is uninitialized

2018-12-03 Thread Linjie Fu
pict_type may be uninitialized, and assert on a value coming from an external library is not proper. Return invalid data error in function ff_qsv_encode to avoid using uninitialized value. Signed-off-by: Linjie Fu --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)