mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/362/head
parent
6e8e9b7633
commit
d393c45051
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue