[FFmpeg-devel] [PATCH] avformat/mov: Fix parsing of tfdt when using sample descriptors.
Jacob Trimble
modmaker at google.com
Wed Apr 4 22:30:56 EEST 2018
Signed-off-by: Jacob Trimble <modmaker at google.com>
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index e7c32e6148..97b1462aab 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4601,7 +4601,7 @@ static int mov_read_tfdt(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;
version = avio_r8(pb);
avio_rb24(pb); /* flags */
--
2.17.0.484.g0c8726318c-goog
More information about the ffmpeg-devel
mailing list