]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mov.c
AAC encoder: various fixes in M/S coding
[ffmpeg] / libavformat / mov.c
index 78081ceb772a1513e454c83671bd88b4dccc5677..98c2f519315a2e846f15c7498468c93e23eac448 100644 (file)
@@ -1863,6 +1863,13 @@ static void mov_parse_stsd_audio(MOVContext *c, AVIOContext *pb,
         }
     }
 
+    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)
+            st->codec->codec_id = mov_codec_id(st, MKTAG('t','w','o','s'));
+    }
+
     switch (st->codec->codec_id) {
     case AV_CODEC_ID_PCM_S8:
     case AV_CODEC_ID_PCM_U8: