diff options
author | Xiaohan Wang <xhwang@chromium.org> | 2018-02-03 01:43:35 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-02-14 01:08:21 +0100 |
commit | 07e46226ae50ce0e4754b5cc11fafaffb1d4116a (patch) | |
tree | 2a5550f25ab0b700b2cac1a7839b0f154e6a8b4a /libavformat/avc.h | |
parent | d797d9f21562f21e04668fa8997f7a629ad01cff (diff) | |
download | ffmpeg-07e46226ae50ce0e4754b5cc11fafaffb1d4116a.tar.gz |
avcodec/h264_cavlc: Set valid qscale value in ff_h264_decode_mb_cavlc()
When ff_h264_decode_mb_cavlc() failed due to wrong sl->qscale values,
e.g. dquant out of range, set the qscale to be a valid value before
returning -1 and exiting the function. The qscale value can be used
later e.g. in loop filter.
BUG=806122
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 71f39de2a57efc8db1d607b09c162c3b806cd45d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avc.h')
0 files changed, 0 insertions, 0 deletions