aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-01-25 16:04:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-01-25 16:04:31 +0000
commit378251ad082c1ea78a8832cf82e9ae767a6cadff (patch)
treecb10b96feac982ed32dbe39945bab009fab94233
parent1953105102e08e501a516d9ac9ad76296b25a1fb (diff)
downloadffmpeg-378251ad082c1ea78a8832cf82e9ae767a6cadff.tar.gz
try avi video name -> codec_id mapping if the mov one has no match
Originally committed as revision 4896 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 216f5e6fb4..50f091c7d1 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -919,6 +919,8 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
/* for MPEG4: set codec type by looking for it */
id = codec_get_id(mov_video_tags, format);
+ if(id <= 0)
+ id = codec_get_id(codec_bmp_tags, format);
if (id >= 0) {
AVCodec *codec;
codec = avcodec_find_decoder(id);