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
0a23129b
Commit
0a23129b
authored
Feb 27, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: Add prefix to get_codec_guid()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ae20682f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
riff.h
libavformat/riff.h
+1
-1
riffenc.c
libavformat/riffenc.c
+2
-2
wtvenc.c
libavformat/wtvenc.c
+2
-2
No files found.
libavformat/riff.h
View file @
0a23129b
...
@@ -110,7 +110,7 @@ static av_always_inline int ff_guidcmp(const void *g1, const void *g2)
...
@@ -110,7 +110,7 @@ static av_always_inline int ff_guidcmp(const void *g1, const void *g2)
int
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
);
int
ff_get_guid
(
AVIOContext
*
s
,
ff_asf_guid
*
g
);
void
ff_put_guid
(
AVIOContext
*
s
,
const
ff_asf_guid
*
g
);
void
ff_put_guid
(
AVIOContext
*
s
,
const
ff_asf_guid
*
g
);
const
ff_asf_guid
*
get_codec_guid
(
enum
AVCodecID
id
,
const
AVCodecGuid
*
av_guid
);
const
ff_asf_guid
*
ff_
get_codec_guid
(
enum
AVCodecID
id
,
const
AVCodecGuid
*
av_guid
);
enum
AVCodecID
ff_codec_guid_get_id
(
const
AVCodecGuid
*
guids
,
ff_asf_guid
guid
);
enum
AVCodecID
ff_codec_guid_get_id
(
const
AVCodecGuid
*
guids
,
ff_asf_guid
guid
);
...
...
libavformat/riffenc.c
View file @
0a23129b
...
@@ -178,7 +178,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc, int flags)
...
@@ -178,7 +178,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc, int flags)
avio_wl32
(
pb
,
write_channel_mask
?
enc
->
channel_layout
:
0
);
avio_wl32
(
pb
,
write_channel_mask
?
enc
->
channel_layout
:
0
);
/* GUID + next 3 */
/* GUID + next 3 */
if
(
enc
->
codec_id
==
AV_CODEC_ID_EAC3
)
{
if
(
enc
->
codec_id
==
AV_CODEC_ID_EAC3
)
{
ff_put_guid
(
pb
,
get_codec_guid
(
enc
->
codec_id
,
ff_codec_wav_guids
));
ff_put_guid
(
pb
,
ff_
get_codec_guid
(
enc
->
codec_id
,
ff_codec_wav_guids
));
}
else
{
}
else
{
avio_wl32
(
pb
,
enc
->
codec_tag
);
avio_wl32
(
pb
,
enc
->
codec_tag
);
avio_wl32
(
pb
,
0x00100000
);
avio_wl32
(
pb
,
0x00100000
);
...
@@ -326,7 +326,7 @@ void ff_put_guid(AVIOContext *s, const ff_asf_guid *g)
...
@@ -326,7 +326,7 @@ void ff_put_guid(AVIOContext *s, const ff_asf_guid *g)
avio_write
(
s
,
*
g
,
sizeof
(
*
g
));
avio_write
(
s
,
*
g
,
sizeof
(
*
g
));
}
}
const
ff_asf_guid
*
get_codec_guid
(
enum
AVCodecID
id
,
const
AVCodecGuid
*
av_guid
)
const
ff_asf_guid
*
ff_
get_codec_guid
(
enum
AVCodecID
id
,
const
AVCodecGuid
*
av_guid
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
av_guid
[
i
].
id
!=
AV_CODEC_ID_NONE
;
i
++
)
{
for
(
i
=
0
;
av_guid
[
i
].
id
!=
AV_CODEC_ID_NONE
;
i
++
)
{
...
...
libavformat/wtvenc.c
View file @
0a23129b
...
@@ -265,12 +265,12 @@ static int write_stream_codec_info(AVFormatContext *s, AVStream *st)
...
@@ -265,12 +265,12 @@ static int write_stream_codec_info(AVFormatContext *s, AVStream *st)
int
hdr_size
=
0
;
int
hdr_size
=
0
;
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
g
=
get_codec_guid
(
st
->
codec
->
codec_id
,
ff_video_guids
);
g
=
ff_
get_codec_guid
(
st
->
codec
->
codec_id
,
ff_video_guids
);
media_type
=
&
ff_mediatype_video
;
media_type
=
&
ff_mediatype_video
;
format_type
=
st
->
codec
->
codec_id
==
AV_CODEC_ID_MPEG2VIDEO
?
&
ff_format_mpeg2_video
:
&
ff_format_videoinfo2
;
format_type
=
st
->
codec
->
codec_id
==
AV_CODEC_ID_MPEG2VIDEO
?
&
ff_format_mpeg2_video
:
&
ff_format_videoinfo2
;
tags
=
ff_codec_bmp_tags
;
tags
=
ff_codec_bmp_tags
;
}
else
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
}
else
if
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
g
=
get_codec_guid
(
st
->
codec
->
codec_id
,
ff_codec_wav_guids
);
g
=
ff_
get_codec_guid
(
st
->
codec
->
codec_id
,
ff_codec_wav_guids
);
media_type
=
&
ff_mediatype_audio
;
media_type
=
&
ff_mediatype_audio
;
format_type
=
&
ff_format_waveformatex
;
format_type
=
&
ff_format_waveformatex
;
tags
=
ff_codec_wav_tags
;
tags
=
ff_codec_wav_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