mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
avcodec/h261dec: Don't set write-only picture_number
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -512,10 +512,7 @@ static int h261_decode_picture_header(H261DecContext *h)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* temporal reference */
|
/* temporal reference */
|
||||||
i = get_bits(&s->gb, 5); /* picture timestamp */
|
skip_bits(&s->gb, 5); /* picture timestamp */
|
||||||
if (i < (s->picture_number & 31))
|
|
||||||
i += 32;
|
|
||||||
s->picture_number = (s->picture_number & ~31) + i;
|
|
||||||
|
|
||||||
s->avctx->framerate = (AVRational) { 30000, 1001 };
|
s->avctx->framerate = (AVRational) { 30000, 1001 };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user