ffmpeg/tests/ref
Andreas Rheinhardt ab768b88e0 avcodec/mpegvideo_enc: Don't set qscale_table value prematurely
When there are multiple candidates for macroblock type, the encoder
tries them all. In order to do so, it keeps several sets of states
containing the variables that get modified when encoding
the macroblock and in the end uses the best of these.

Yet one variable was set, but not included in this state:
The current macroblock's qscale value in the current picture's
qscale_table. This may currently be set multiple times in
mpv_reconstruct_mb(), yet it is read when adaptive_quant is true.
Currently, the value read can be the value set by the last attempt
to write the current macroblock and not the initial value.

Fix this by only setting the qscale_table value in one place
outside of mpv_reconstruct_mb() (where it does not belong at all).

Reviewed-by: Ramiro Polla <ramiro.polla@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-03-04 12:44:18 +01:00
..
acodec avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
fate fate-sws-pixdesc-query: update ref for new pixfmts 2025-03-01 20:15:59 +01:00
lavf swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats 2024-12-05 21:10:29 +01:00
lavf-fate avformat/matroska: add support for VVC streams 2025-01-12 11:13:31 -03:00
pixfmt swscale: use 16-bit intermediate precision for RGB/XYZ conversion 2024-12-26 20:31:36 +01:00
seek avcodec/mpegvideo_enc: Don't set qscale_table value prematurely 2025-03-04 12:44:18 +01:00
vsynth avcodec/mpegvideo_enc: Don't set qscale_table value prematurely 2025-03-04 12:44:18 +01:00