History

lavc/mpeg4videodec: do not invent a framerate from guessed numbers

Improves timestamps for fate-m4v*

Anton Khirnov committed 3 years ago

Commit cdfd15f1 parent 4a376f43 files · +43 −45Browse files

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

Unified · Split

libavcodec/mpeg4videodec.c+0−3
@@ -3141,9 +3141,6 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb, · 3140 unmodified lines
31413141
31423142 av_log(s->avctx, AV_LOG_WARNING,
31433143 "time_increment_bits set to %d bits, based on bitstream analysis\n", ctx->time_increment_bits);
3144− if (s->avctx->framerate.num && 4*s->avctx->framerate.num < 1<<ctx->time_increment_bits) {
3145− s->avctx->framerate.num = 1<<ctx->time_increment_bits;
3146− }
31473144 }
31483145
31493146 if (IS_3IV1)

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