aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/time_internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-06 15:45:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-08 11:59:08 +0200
commit5c457c673fbd8d2d0ef1ed10dbd269ee3570e628 (patch)
treed8e5a0c6455d367bed70000f217404d907b5746a /libavutil/time_internal.h
parentfb7cd459778d6ae8975bf26766109ad82859c0e8 (diff)
downloadffmpeg-5c457c673fbd8d2d0ef1ed10dbd269ee3570e628.tar.gz
avcodec/mpegvideo_enc: Don't segfault on unorthodox mpeg_quant
The (deprecated) field AVCodecContext.mpeg_quant has no range restriction; MpegEncContext.mpeg_quant is restricted to 0..1. If the former is set, the latter is overwritten with it without checking the range. This can trigger an av_assert2() with the MPEG-4 encoder when writing said field. Fix this by just setting MpegEncContext.mpeg_quant to 1 if AVCodecContext.mpeg_quant is set. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit d393c45051ddaf6146e7e29ec2ea97035a727529)
Diffstat (limited to 'libavutil/time_internal.h')
0 files changed, 0 insertions, 0 deletions