mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
do not overwrite codec type if already known, fix conflict between 'raw ' fourcc used for audio and video, ae002_wordup.mov
Originally committed as revision 6890 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f5a9e8f33d
commit
48855b26d4
@ -803,9 +803,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
|
||||
|
||||
st->codec->codec_tag = 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;
|
||||
} 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);
|
||||
if (id <= 0)
|
||||
id = codec_get_id(codec_bmp_tags, format);
|
||||
|
Loading…
Reference in New Issue
Block a user