I had the notion that the fourcc 0x00000000 to raw/twos mapping was only valid for version 0 sound sample descriptions. However, the documentation is quite foggy regarding this subject, so it's better to do this mapping regardless of sample description version.

Mats

--
Mats Peterson
http://matsp888.no-ip.org/~mats/
>From 9e3354877146b29a30810a886342145c74d1a7bd Mon Sep 17 00:00:00 2001
From: Mats Peterson <matsp...@yahoo.com>
Date: Fri, 15 Jan 2016 23:28:06 +0100
Subject: [PATCH] lavf/mov: Don't limit fourcc 0 -> raw/twos to version 0 sample descriptions

---
 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 4cc5ff2..98c2f51 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1863,7 +1863,7 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb,
         }
     }
 
-    if (version == 0 && sc->format == 0) {
+    if (sc->format == 0) {
         if (st->codec->bits_per_coded_sample == 8)
             st->codec->codec_id = mov_codec_id(st, MKTAG('r','a','w',' '));
         else if (st->codec->bits_per_coded_sample == 16)
-- 
1.7.10.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to