Commit ed16c01a authored by bcoudurier's avatar bcoudurier

do not overwrite codec type if already known, fix conflict between 'raw '...

do not overwrite codec type if already known, fix conflict between 'raw ' fourcc used for audio and video, ae002_wordup.mov

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6890 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 29aee6eb
...@@ -803,9 +803,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) ...@@ -803,9 +803,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
st->codec->codec_tag = format; st->codec->codec_tag = format;
id = codec_get_id(mov_audio_tags, format); id = codec_get_id(mov_audio_tags, format);
if (id > 0) { if (st->codec->codec_type != CODEC_TYPE_VIDEO && id > 0) {
st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_type = CODEC_TYPE_AUDIO;
} else if (format && format != MKTAG('m', 'p', '4', 's')) { /* skip old asf mpeg4 tag */ } else if (st->codec->codec_type != CODEC_TYPE_AUDIO && /* do not overwrite codec type */
format && format != MKTAG('m', 'p', '4', 's')) { /* skip old asf mpeg4 tag */
id = codec_get_id(mov_video_tags, format); id = codec_get_id(mov_video_tags, format);
if (id <= 0) if (id <= 0)
id = codec_get_id(codec_bmp_tags, format); id = codec_get_id(codec_bmp_tags, format);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment