OSDN Git Service

mov: Read multiple stsd from DV
authorVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 8 Nov 2016 03:30:22 +0000 (22:30 -0500)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 8 Nov 2016 16:22:29 +0000 (11:22 -0500)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavformat/mov.c

index d4454bb..b5b2a5b 100644 (file)
@@ -1783,6 +1783,8 @@ static int mov_skip_multiple_stsd(MOVContext *c, AVIOContext *pb,
         (codec_tag != format &&
          // prores is allowed to have differing data format and codec tag
          codec_tag != AV_RL32("apcn") && codec_tag != AV_RL32("apch") &&
+         // so is dv (sigh)
+         codec_tag != AV_RL32("dvpp") && codec_tag != AV_RL32("dvcp") &&
          (c->fc->video_codec_id ? video_codec_id != c->fc->video_codec_id
                                 : codec_tag != MKTAG('j','p','e','g')))) {
         /* Multiple fourcc, we skip JPEG. This is not correct, we should