[FFmpeg-devel] [PATCH]Do not detect mpegts-in-mov as mov
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Oct 22 11:11:53 CEST 2012
Hi!
Attached patch fixes ticket #987 for me.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ce4865d..bd7c0b5 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2875,7 +2875,6 @@ static int mov_probe(AVProbeData *p)
case MKTAG('m','o','o','v'):
moov_offset = offset + 4;
case MKTAG('j','P',' ',' '): /* jpeg 2000 signature */
- case MKTAG('m','d','a','t'):
case MKTAG('p','n','o','t'): /* detect movs with preview pics like ew.mov and april.mov */
case MKTAG('u','d','t','a'): /* Packet Video PVAuthor adds this and a lot of more junk */
case MKTAG('f','t','y','p'):
@@ -2895,6 +2894,7 @@ static int mov_probe(AVProbeData *p)
case MKTAG('s','k','i','p'):
case MKTAG('u','u','i','d'):
case MKTAG('p','r','f','l'):
+ case MKTAG('m','d','a','t'):
/* if we only find those cause probedata is too small at least rate them */
score = FFMAX(score, AVPROBE_SCORE_MAX - 50);
offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset;
More information about the ffmpeg-devel
mailing list