diff options
author | Mike Brown <mikeb@vibephone.com> | 2005-08-10 23:41:20 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-08-10 23:41:20 +0000 |
commit | ae38261ee8e969a776d2952fbe32a6023036f51f (patch) | |
tree | 24576874116628d42c9bf02d7a20427689a2134b /libavformat/asf.c | |
parent | 6870a440cee9c142c5d99b44e6c93348b901c4d0 (diff) | |
download | ffmpeg-ae38261ee8e969a776d2952fbe32a6023036f51f.tar.gz |
changes to ignore command media embedded in MS WMV files patch by ("Brown, Mike": mikeb, vibephone com)
Originally committed as revision 4501 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r-- | libavformat/asf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c index 19265ac6a6..435d8256d8 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -51,6 +51,7 @@ static void print_guid(const GUID *g) else PRINT_IF_GUID(g, audio_conceal_none); else PRINT_IF_GUID(g, video_stream); else PRINT_IF_GUID(g, video_conceal_none); + else PRINT_IF_GUID(g, command_stream); else PRINT_IF_GUID(g, comment_header); else PRINT_IF_GUID(g, codec_comment_header); else PRINT_IF_GUID(g, codec_comment1_header); @@ -204,6 +205,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) type = CODEC_TYPE_AUDIO; } else if (!memcmp(&g, &video_stream, sizeof(GUID))) { type = CODEC_TYPE_VIDEO; + } else if (!memcmp(&g, &command_stream, sizeof(GUID))) { + type = CODEC_TYPE_UNKNOWN; } else { goto fail; } |