From ebb8dd437b7d6f88611b3e4cc00ff035297d685c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 2 Oct 2013 18:45:59 +0200 Subject: [PATCH] mov: fix trun / pseudo_stream_id handling This fixes simple concatenated h264 Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 8b1ef01dfd..b06dcdb828 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2636,7 +2636,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) return AVERROR_INVALIDDATA; } sc = st->priv_data; - if (sc->pseudo_stream_id+1 != frag->stsd_id) + if (sc->pseudo_stream_id+1 != frag->stsd_id && sc->pseudo_stream_id != -1) return 0; avio_r8(pb); /* version */ flags = avio_rb24(pb);