Skip to content
Snippets Groups Projects
Commit a86928d2 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Michael Niedermayer
Browse files

flvdec: fix lack of duration for some files


Fixes #4579

Signed-off-by: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 108b738d
No related branches found
No related tags found
No related merge requests found
......@@ -847,7 +847,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
int type;
meta_pos = avio_tell(s->pb);
type = flv_read_metabody(s, next);
if (type == 0 && dts == 0 || type < 0) {
if (type == 0 && dts == 0 || type < 0 || type == TYPE_UNKNOWN) {
goto skip;
} else if (type == TYPE_ONTEXTDATA) {
avpriv_request_sample(s, "OnTextData packet");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment