1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
Andreas Rheinhardt 0a06f5aca5 avcodec/wmv2dec: Zero mb_type array for I pictures
Up until now, ff_wmv2_decode_secondary_picture_header() only
set the mb_type array for non I-pictures, so that the decoding
process uses the earlier values of this array; this affects
the output of the wmv8-x8intra FATE-test (which this patch
therefore updates). These earlier values were set when decoding
earlier frames or when the buffer was initially zero-allocated.
A consequence of this is that the output of this test would be
random if ff_find_unused_picture() would select the unused picture
to return at random. Furthermore decoding from a keyframe onwards
depends upon the earlier state of the decoder.

This patch therefore zeroes said array when decoding an I picture.

(It is not claimed that zero is the right value to fill the array with.
I just don't know.)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-08-10 18:49:35 +02:00
..
aic
amv
ast
bfi
crc
dpx
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
imf
2022-08-03 14:09:46 -07:00
2022-07-19 12:27:18 +02:00
jv
lfg
m4v
md5
mkv
2022-07-19 12:27:18 +02:00
mtv
opt
2022-07-19 12:27:18 +02:00
2022-07-19 12:27:18 +02:00
ptx
rl2
sha
smc
tea
thp
tmv
url
vb
vp4
vp5
vp7
w64
yop