summaryrefslogtreecommitdiffstats
path: root/libavformat/yuv4mpegdec.c
diff options
context:
space:
mode:
authorLinjie Fu <linjie.fu@intel.com>2018-12-09 21:30:38 +0800
committerZhong Li <zhong.li@intel.com>2018-12-10 11:19:24 +0800
commit1c96d2e3998b9a2a97447547cb2d688ec0ce09ed (patch)
tree50725906893964cda339c4708870781cf0ec658b /libavformat/yuv4mpegdec.c
parentde441ad52a4d9791d93c278b4cf6867815c28b92 (diff)
downloadffmpeg-streaming-1c96d2e3998b9a2a97447547cb2d688ec0ce09ed.zip
ffmpeg-streaming-1c96d2e3998b9a2a97447547cb2d688ec0ce09ed.tar.gz
lavc/qsvenc: replace assert with error return
Fix the (m)jpeg encoding regression issue as decription in tikect #7593, due to bs->FrameType is not set in such case in MSDK (https://github.com/Intel-Media-SDK/MediaSDK/issues/970). (And assert on a value coming from an external library is not proper.) Add default type check for bs->FrameType, and return invalid data error in function ff_qsv_encode to avoid using uninitialized value. Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavformat/yuv4mpegdec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud