Commit f0f47306 authored by michael's avatar michael

changes to ignore command media embedded in MS WMV files patch by ("Brown,...

changes to ignore command media embedded in MS WMV files patch by ("Brown, Mike": mikeb, vibephone com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4501 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f97f83d7
...@@ -3116,6 +3116,8 @@ static void opt_input_file(const char *filename) ...@@ -3116,6 +3116,8 @@ static void opt_input_file(const char *filename)
break; break;
case CODEC_TYPE_SUBTITLE: case CODEC_TYPE_SUBTITLE:
break; break;
case CODEC_TYPE_UNKNOWN:
break;
default: default:
av_abort(); av_abort();
} }
...@@ -3163,6 +3165,7 @@ static void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr) ...@@ -3163,6 +3165,7 @@ static void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr)
has_video = 1; has_video = 1;
break; break;
case CODEC_TYPE_DATA: case CODEC_TYPE_DATA:
case CODEC_TYPE_UNKNOWN:
case CODEC_TYPE_SUBTITLE: case CODEC_TYPE_SUBTITLE:
break; break;
default: default:
......
...@@ -51,6 +51,7 @@ static void print_guid(const GUID *g) ...@@ -51,6 +51,7 @@ static void print_guid(const GUID *g)
else PRINT_IF_GUID(g, audio_conceal_none); else PRINT_IF_GUID(g, audio_conceal_none);
else PRINT_IF_GUID(g, video_stream); else PRINT_IF_GUID(g, video_stream);
else PRINT_IF_GUID(g, video_conceal_none); 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, comment_header);
else PRINT_IF_GUID(g, codec_comment_header); else PRINT_IF_GUID(g, codec_comment_header);
else PRINT_IF_GUID(g, codec_comment1_header); else PRINT_IF_GUID(g, codec_comment1_header);
...@@ -204,6 +205,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -204,6 +205,8 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
type = CODEC_TYPE_AUDIO; type = CODEC_TYPE_AUDIO;
} else if (!memcmp(&g, &video_stream, sizeof(GUID))) { } else if (!memcmp(&g, &video_stream, sizeof(GUID))) {
type = CODEC_TYPE_VIDEO; type = CODEC_TYPE_VIDEO;
} else if (!memcmp(&g, &command_stream, sizeof(GUID))) {
type = CODEC_TYPE_UNKNOWN;
} else { } else {
goto fail; goto fail;
} }
......
...@@ -165,6 +165,9 @@ static const GUID video_conceal_none = { ...@@ -165,6 +165,9 @@ static const GUID video_conceal_none = {
0x20FB5700, 0x5B55, 0x11CF, { 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B }, 0x20FB5700, 0x5B55, 0x11CF, { 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B },
}; };
static const GUID command_stream = {
0x59DACFC0, 0x59E6, 0x11D0, { 0xA3, 0xAC, 0x00, 0xA0, 0xC9, 0x03, 0x48, 0xF6 },
};
static const GUID comment_header = { static const GUID comment_header = {
0x75b22633, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c }, 0x75b22633, 0x668e, 0x11cf, { 0xa6, 0xd9, 0x00, 0xaa, 0x00, 0x62, 0xce, 0x6c },
......
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