Commit ebb8dd43 authored by Michael Niedermayer's avatar Michael Niedermayer

mov: fix trun / pseudo_stream_id handling

This fixes simple concatenated h264
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 95666b22
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment