forked from FFmpeg/FFmpeg
avcodec/h261dec: Don't set framerate multiple times
Just do it once during init. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
9933dfe103
commit
eb0beffcb3
1 changed files with 2 additions and 2 deletions
|
@ -87,6 +87,8 @@ static av_cold int h261_decode_init(AVCodecContext *avctx)
|
||||||
MpegEncContext *const s = &h->s;
|
MpegEncContext *const s = &h->s;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
avctx->framerate = (AVRational) { 30000, 1001 };
|
||||||
|
|
||||||
s->private_ctx = &h->common;
|
s->private_ctx = &h->common;
|
||||||
// set defaults
|
// set defaults
|
||||||
ret = ff_mpv_decode_init(s, avctx);
|
ret = ff_mpv_decode_init(s, avctx);
|
||||||
|
@ -473,8 +475,6 @@ static int h261_decode_picture_header(H261DecContext *h)
|
||||||
/* temporal reference */
|
/* temporal reference */
|
||||||
skip_bits(&s->gb, 5); /* picture timestamp */
|
skip_bits(&s->gb, 5); /* picture timestamp */
|
||||||
|
|
||||||
s->avctx->framerate = (AVRational) { 30000, 1001 };
|
|
||||||
|
|
||||||
/* PTYPE starts here */
|
/* PTYPE starts here */
|
||||||
skip_bits1(&s->gb); /* split screen off */
|
skip_bits1(&s->gb); /* split screen off */
|
||||||
skip_bits1(&s->gb); /* camera off */
|
skip_bits1(&s->gb); /* camera off */
|
||||||
|
|
Loading…
Add table
Reference in a new issue