Files
ffmpeg/libavcodec
Andreas Rheinhardt d393c45051 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>
2021-04-08 11:32:33 +02:00
..
2021-02-27 17:09:44 +01:00
2021-03-22 02:43:04 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00
2021-04-06 03:20:59 +02:00
2021-02-27 17:09:44 +01:00
2021-03-22 02:43:04 +01:00
2021-03-01 06:10:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-04-02 12:19:07 +02:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-01-08 05:05:10 +01:00
2021-03-22 02:43:04 +01:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-01-21 17:13:54 +00:00
2021-03-01 06:10:44 +01:00
2021-03-22 02:43:04 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-03-22 02:43:04 +01:00
2021-02-04 17:26:06 +01:00
2021-01-01 15:25:48 +01:00
2021-01-01 15:25:48 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-02-02 14:29:33 +01:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-09 13:41:22 +01:00
2021-04-03 11:54:12 +02:00
2021-03-22 02:43:04 +01:00
2021-03-29 22:19:39 +02:00
2021-03-22 02:43:04 +01:00
2021-03-22 02:43:04 +01:00
2021-03-05 19:45:00 +02:00
2021-03-05 19:45:00 +02:00
2021-04-08 11:03:15 +02:00
2021-04-01 14:45:54 +02:00
2021-03-09 13:41:22 +01:00
2021-01-25 00:18:47 +01:00
2021-01-01 15:25:48 +01:00