mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
flvdec: fix lack of duration for some files
Fixes #4579 Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
108b738db1
commit
a86928d2ab
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user