History

avcodec/h261dec: Don't set framerate multiple times

Just do it once during init.

Andreas Rheinhardt committed 2 years ago

Commit eb0beff1 parent 9933dfe1 file · +2 −2Browse files

Unified · Split

libavcodec/h261dec.c+2−2
@@ -87,6 +87,8 @@ static av_cold int h261_decode_init(AVCodecContext *avctx) · 86 unmodified lines
87 MpegEncContext *const s = &h->s;87 MpegEncContext *const s = &h->s;
88 int ret;88 int ret;
89 89
90 avctx->framerate = (AVRational) { 30000, 1001 };
91
90 s->private_ctx = &h->common;92 s->private_ctx = &h->common;
91 // set defaults93 // set defaults
92 ret = ff_mpv_decode_init(s, avctx);94 ret = ff_mpv_decode_init(s, avctx);
@@ -473,8 +475,6 @@ static int h261_decode_picture_header(H261DecContext *h) · 380 unmodified lines
473 /* temporal reference */475 /* temporal reference */
474 skip_bits(&s->gb, 5); /* picture timestamp */476 skip_bits(&s->gb, 5); /* picture timestamp */
475 477
476 s->avctx->framerate = (AVRational) { 30000, 1001 };
477
478 /* PTYPE starts here */478 /* PTYPE starts here */
479 skip_bits1(&s->gb); /* split screen off */479 skip_bits1(&s->gb); /* split screen off */
480 skip_bits1(&s->gb); /* camera off */480 skip_bits1(&s->gb); /* camera off */

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