Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
77efa159
Commit
77efa159
authored
Sep 04, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case insensitive codec_get_id()
Originally committed as revision 2205 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5e4639e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
29 deletions
+4
-29
avienc.c
libavformat/avienc.c
+4
-29
No files found.
libavformat/avienc.c
View file @
77efa159
...
@@ -78,72 +78,49 @@ const CodecTag codec_bmp_tags[] = {
...
@@ -78,72 +78,49 @@ const CodecTag codec_bmp_tags[] = {
{
CODEC_ID_H263I
,
MKTAG
(
'I'
,
'2'
,
'6'
,
'3'
)
},
/* intel h263 */
{
CODEC_ID_H263I
,
MKTAG
(
'I'
,
'2'
,
'6'
,
'3'
)
},
/* intel h263 */
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_H263I
,
MKTAG
(
'i'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'U'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'U'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'h'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'v'
,
'i'
,
'v'
,
'1'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'v'
,
'i'
,
'v'
,
'1'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'X'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'X'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'd'
,
'i'
,
'v'
,
'x'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'X'
,
'5'
,
'0'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'X'
,
'5'
,
'0'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'X'
,
'V'
,
'I'
,
'D'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'X'
,
'V'
,
'I'
,
'D'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'x'
,
'v'
,
'i'
,
'd'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'm'
,
'p'
,
'4'
,
's'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'S'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'S'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'M'
,
'4'
,
'S'
,
'2'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'M'
,
'4'
,
'S'
,
'2'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'm'
,
'4'
,
's'
,
'2'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
0x04
,
0
,
0
,
0
)
},
/* some broken avi use this */
{
CODEC_ID_MPEG4
,
MKTAG
(
0x04
,
0
,
0
,
0
)
},
/* some broken avi use this */
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'1'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'1'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'd'
,
'i'
,
'v'
,
'1'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'X'
,
'v'
,
'i'
,
'D'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'B'
,
'L'
,
'Z'
,
'0'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'B'
,
'L'
,
'Z'
,
'0'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'm'
,
'p'
,
'4'
,
'v'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'm'
,
'p'
,
'4'
,
'v'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'U'
,
'M'
,
'P'
,
'4'
)
},
{
CODEC_ID_MPEG4
,
MKTAG
(
'U'
,
'M'
,
'P'
,
'4'
)
},
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'3'
),
.
invalid_asf
=
1
},
/* default signature when using MSMPEG4 */
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'3'
),
.
invalid_asf
=
1
},
/* default signature when using MSMPEG4 */
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'd'
,
'i'
,
'v'
,
'3'
),
.
invalid_asf
=
1
},
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'3'
)
},
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'3'
)
},
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'M'
,
'P'
,
'G'
,
'3'
)
},
{
CODEC_ID_MSMPEG4V3
,
MKTAG
(
'M'
,
'P'
,
'G'
,
'3'
)
},
{
CODEC_ID_MSMP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'c'
,
'o'
,
'l'
,
'0'
)
},
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'2'
)
},
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'M'
,
'P'
,
'4'
,
'2'
)
},
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'2'
)
},
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'2'
)
},
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'd'
,
'i'
,
'v'
,
'2'
)
},
{
CODEC_ID_MSMPEG4V2
,
MKTAG
(
'm'
,
'p'
,
'4'
,
'2'
)
},
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'M'
,
'P'
,
'G'
,
'4'
)
},
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'M'
,
'P'
,
'G'
,
'4'
)
},
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'4'
)
},
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'D'
,
'I'
,
'V'
,
'4'
)
},
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'd'
,
'i'
,
'v'
,
'4'
)
},
{
CODEC_ID_MSMPEG4V1
,
MKTAG
(
'm'
,
'p'
,
'g'
,
'4'
)
},
{
CODEC_ID_WMV1
,
MKTAG
(
'W'
,
'M'
,
'V'
,
'1'
)
},
{
CODEC_ID_WMV1
,
MKTAG
(
'W'
,
'M'
,
'V'
,
'1'
)
},
/* added based on MPlayer */
/* added based on MPlayer */
{
CODEC_ID_WMV1
,
MKTAG
(
'w'
,
'm'
,
'v'
,
'1'
)
},
{
CODEC_ID_WMV2
,
MKTAG
(
'W'
,
'M'
,
'V'
,
'2'
)
},
{
CODEC_ID_WMV2
,
MKTAG
(
'W'
,
'M'
,
'V'
,
'2'
)
},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EO3
,
MKTAG
(
'I'
,
'V'
,
'3'
,
'2'
)
},
{
CODEC_ID_INDEO3
,
MKTAG
(
'I'
,
'V'
,
'3'
,
'2'
)
},
{
CODEC_ID_VP3
,
MKTAG
(
'V'
,
'P'
,
'3'
,
'1'
)
},
{
CODEC_ID_VP3
,
MKTAG
(
'V'
,
'P'
,
'3'
,
'1'
)
},
...
@@ -197,7 +169,10 @@ static unsigned int codec_get_asf_tag(const CodecTag *tags, int id)
...
@@ -197,7 +169,10 @@ static unsigned int codec_get_asf_tag(const CodecTag *tags, int id)
enum
CodecID
codec_get_id
(
const
CodecTag
*
tags
,
unsigned
int
tag
)
enum
CodecID
codec_get_id
(
const
CodecTag
*
tags
,
unsigned
int
tag
)
{
{
while
(
tags
->
id
!=
0
)
{
while
(
tags
->
id
!=
0
)
{
if
(
tags
->
tag
==
tag
)
if
(
toupper
((
tag
>>
0
)
&
0xFF
)
==
toupper
((
tags
->
tag
>>
0
)
&
0xFF
)
&&
toupper
((
tag
>>
8
)
&
0xFF
)
==
toupper
((
tags
->
tag
>>
8
)
&
0xFF
)
&&
toupper
((
tag
>>
16
)
&
0xFF
)
==
toupper
((
tags
->
tag
>>
16
)
&
0xFF
)
&&
toupper
((
tag
>>
24
)
&
0xFF
)
==
toupper
((
tags
->
tag
>>
24
)
&
0xFF
))
return
tags
->
id
;
return
tags
->
id
;
tags
++
;
tags
++
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment