mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/ituh263dec: Correct timestamp recovery for B frames
Improves u263_b-frames_5.avi Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
71ca855c9d
commit
0126cd95cc
@ -928,8 +928,9 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
|
||||
}
|
||||
/* temporal reference */
|
||||
i = get_bits(&s->gb, 8); /* picture timestamp */
|
||||
if( (s->picture_number&~0xFF)+i < s->picture_number)
|
||||
i+= 256;
|
||||
|
||||
i -= (i - (s->picture_number & 0xFF) + 128) & ~0xFF;
|
||||
|
||||
s->picture_number= (s->picture_number&~0xFF) + i;
|
||||
|
||||
/* PTYPE starts here */
|
||||
|
Loading…
x
Reference in New Issue
Block a user