History

avcodec/h261dec: Don't set write-only picture_number

Andreas Rheinhardt committed 3 years ago

Commit c9953111 parent a2175ca1 file · +1 −4Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/h261dec.c+1−4
@@ -512,10 +512,7 @@ static int h261_decode_picture_header(H261DecContext *h) · 511 unmodified lines
512 }512 }
513 513
514 /* temporal reference */514 /* temporal reference */
515 i = get_bits(&s->gb, 5); /* picture timestamp */515 skip_bits(&s->gb, 5); /* picture timestamp */
516 if (i < (s->picture_number & 31))
517 i += 32;
518 s->picture_number = (s->picture_number & ~31) + i;
519 516
520 s->avctx->framerate = (AVRational) { 30000, 1001 };517 s->avctx->framerate = (AVRational) { 30000, 1001 };
521 518

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t