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
0570bf06
Commit
0570bf06
authored
Nov 11, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cleanup statics & const
Originally committed as revision 1188 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e8c00089
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
asf.c
libav/asf.c
+4
-4
avienc.c
libav/avienc.c
+4
-4
avio.h
libav/avio.h
+1
-1
aviobuf.c
libav/aviobuf.c
+1
-1
No files found.
libav/asf.c
View file @
0570bf06
...
...
@@ -874,7 +874,7 @@ static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
.
extradata
=
av_mallocz
(
st
->
codec
.
extradata_size
);
get_buffer
(
pb
,
st
->
codec
.
extradata
,
st
->
codec
.
extradata_size
);
}
st
->
codec
.
codec_tag
=
tag1
;
st
->
codec
.
codec_tag
=
st
->
codec
.
fourcc
=
tag1
;
st
->
codec
.
codec_id
=
codec_get_id
(
codec_bmp_tags
,
tag1
);
}
pos2
=
url_ftell
(
pb
);
...
...
@@ -1202,7 +1202,7 @@ static int asf_read_seek(AVFormatContext *s, int64_t pts)
return
-
1
;
}
AVInputFormat
asf_iformat
=
{
static
AVInputFormat
asf_iformat
=
{
"asf"
,
"asf format"
,
sizeof
(
ASFContext
),
...
...
@@ -1213,7 +1213,7 @@ AVInputFormat asf_iformat = {
asf_read_seek
,
};
AVOutputFormat
asf_oformat
=
{
static
AVOutputFormat
asf_oformat
=
{
"asf"
,
"asf format"
,
"application/octet-stream"
,
...
...
@@ -1230,7 +1230,7 @@ AVOutputFormat asf_oformat = {
asf_write_trailer
,
};
AVOutputFormat
asf_stream_oformat
=
{
static
AVOutputFormat
asf_stream_oformat
=
{
"asf_stream"
,
"asf format"
,
"application/octet-stream"
,
...
...
libav/avienc.c
View file @
0570bf06
...
...
@@ -36,7 +36,7 @@ typedef struct {
AVIIndex
*
first
,
*
last
;
}
AVIContext
;
offset_t
start_tag
(
ByteIOContext
*
pb
,
char
*
tag
)
offset_t
start_tag
(
ByteIOContext
*
pb
,
c
onst
c
har
*
tag
)
{
put_tag
(
pb
,
tag
);
put_le32
(
pb
,
0
);
...
...
@@ -55,7 +55,7 @@ void end_tag(ByteIOContext *pb, offset_t start)
/* Note: when encoding, the first matching tag is used, so order is
important if multiple tags possible for a given codec. */
CodecTag
codec_bmp_tags
[]
=
{
const
CodecTag
codec_bmp_tags
[]
=
{
{
CODEC_ID_H263
,
MKTAG
(
'H'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263P
,
MKTAG
(
'H'
,
'2'
,
'6'
,
'3'
)
},
{
CODEC_ID_H263I
,
MKTAG
(
'I'
,
'2'
,
'6'
,
'3'
)
},
/* intel h263 */
...
...
@@ -122,7 +122,7 @@ unsigned int codec_get_bmp_tag(int id)
}
/* BITMAPINFOHEADER header */
void
put_bmp_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
,
CodecTag
*
tags
,
int
for_asf
)
void
put_bmp_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
,
const
CodecTag
*
tags
,
int
for_asf
)
{
put_le32
(
pb
,
40
);
/* size */
put_le32
(
pb
,
enc
->
width
);
...
...
@@ -138,7 +138,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, CodecTag *tags, int
put_le32
(
pb
,
0
);
}
void
parse_specific_params
(
AVCodecContext
*
stream
,
int
*
au_byterate
,
int
*
au_ssize
,
int
*
au_scale
)
static
void
parse_specific_params
(
AVCodecContext
*
stream
,
int
*
au_byterate
,
int
*
au_ssize
,
int
*
au_scale
)
{
switch
(
stream
->
codec_id
)
{
case
CODEC_ID_PCM_S16LE
:
...
...
libav/avio.h
View file @
0570bf06
...
...
@@ -85,7 +85,7 @@ void put_le32(ByteIOContext *s, unsigned int val);
void
put_be32
(
ByteIOContext
*
s
,
unsigned
int
val
);
void
put_le16
(
ByteIOContext
*
s
,
unsigned
int
val
);
void
put_be16
(
ByteIOContext
*
s
,
unsigned
int
val
);
void
put_tag
(
ByteIOContext
*
s
,
char
*
tag
);
void
put_tag
(
ByteIOContext
*
s
,
c
onst
c
har
*
tag
);
void
put_be64_double
(
ByteIOContext
*
s
,
double
val
);
void
put_strz
(
ByteIOContext
*
s
,
const
char
*
buf
);
...
...
libav/aviobuf.c
View file @
0570bf06
...
...
@@ -219,7 +219,7 @@ void put_be16(ByteIOContext *s, unsigned int val)
put_byte
(
s
,
val
);
}
void
put_tag
(
ByteIOContext
*
s
,
char
*
tag
)
void
put_tag
(
ByteIOContext
*
s
,
c
onst
c
har
*
tag
)
{
while
(
*
tag
)
{
put_byte
(
s
,
*
tag
++
);
...
...
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