[FFmpeg-devel] [PATCH]Recognize "qt " compatible brand in isom

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Nov 2 15:37:32 CET 2012


Hi!

Attached patch fixes ticket #1881 for me, I don't know if it has funny 
side-effects.

Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mov.c b/libavformat/mov.c
index d7d7f21..3488a80 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -755,6 +755,8 @@ static int mov_read_ftyp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     avio_read(pb, comp_brands_str, comp_brand_size);
     comp_brands_str[comp_brand_size] = 0;
     av_dict_set(&c->fc->metadata, "compatible_brands", comp_brands_str, 0);
+    if (!strncmp(comp_brands_str, "qt  ", 4))
+        c->isom = 0;
     av_freep(&comp_brands_str);
 
     return 0;


More information about the ffmpeg-devel mailing list