mirror of https://github.com/FFmpeg/FFmpeg.git
Broken inrelease/7.15ecf5b93dd
. More precisely,3994623df2
changed the precursor of ff_mpv_reconstruct_mb() to always decode to the first row of macroblocks for B pictures when a draw_horiz_band callback is set and to (they are exported to the caller via said callback and each row overwrites the previously decoded row; this was probably intended as a cache-optimization). This first macroblock row was used as source for the draw_horiz_band callback. This of course means that the ordinary output B-frame was not decoded correctly at all. Therefore the first aforementioned commit removed this special handling of draw_horiz_band; yet it did not remove the special handling for B-frames in ff_draw_horiz_band(), which broke draw_horiz_band for B-frames. This commit fixes this. (Actually, draw_horiz_band was already broken before5ecf5b93dd
when using slice-threading: All slice-threads would write to the first row of macroblocks for B-frames, leading to data races. It seems no one has ever complained about this, just as no one has ever complained about the breakage caused by5ecf5b93dd
. Probably no one uses draw_horiz_band.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent
f8b8f16163
commit
c28e553cbf
1 changed files with 8 additions and 15 deletions
Loading…
Reference in new issue