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
c18a2692
Commit
c18a2692
authored
Nov 11, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cleanup statics & const
Originally committed as revision 1186 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
df1c67ad
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
37 deletions
+35
-37
au.c
libav/au.c
+2
-2
audio.c
libav/audio.c
+2
-2
avformat.h
libav/avformat.h
+0
-1
avi.h
libav/avi.h
+4
-4
crc.c
libav/crc.c
+1
-1
dv.c
libav/dv.c
+3
-4
ffm.c
libav/ffm.c
+2
-2
grab.c
libav/grab.c
+2
-2
img.c
libav/img.c
+15
-15
ogg.c
libav/ogg.c
+1
-1
rm.c
libav/rm.c
+2
-2
utils.c
libav/utils.c
+1
-1
No files found.
libav/au.c
View file @
c18a2692
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#define AU_UNKOWN_SIZE ((UINT32)(~0))
#define AU_UNKOWN_SIZE ((UINT32)(~0))
/* The ffmpeg codecs we support, and the IDs they have in the file */
/* The ffmpeg codecs we support, and the IDs they have in the file */
CodecTag
codec_au_tags
[]
=
{
static
const
CodecTag
codec_au_tags
[]
=
{
{
CODEC_ID_PCM_MULAW
,
1
},
{
CODEC_ID_PCM_MULAW
,
1
},
{
CODEC_ID_PCM_S16BE
,
3
},
{
CODEC_ID_PCM_S16BE
,
3
},
{
CODEC_ID_PCM_ALAW
,
27
},
{
CODEC_ID_PCM_ALAW
,
27
},
...
@@ -40,7 +40,7 @@ CodecTag codec_au_tags[] = {
...
@@ -40,7 +40,7 @@ CodecTag codec_au_tags[] = {
};
};
/* AUDIO_FILE header */
/* AUDIO_FILE header */
int
put_au_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
)
static
int
put_au_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
)
{
{
int
tag
;
int
tag
;
...
...
libav/audio.c
View file @
c18a2692
...
@@ -272,7 +272,7 @@ static int audio_read_close(AVFormatContext *s1)
...
@@ -272,7 +272,7 @@ static int audio_read_close(AVFormatContext *s1)
return
0
;
return
0
;
}
}
AVInputFormat
audio_in_format
=
{
static
AVInputFormat
audio_in_format
=
{
"audio_device"
,
"audio_device"
,
"audio grab and output"
,
"audio grab and output"
,
sizeof
(
AudioData
),
sizeof
(
AudioData
),
...
@@ -283,7 +283,7 @@ AVInputFormat audio_in_format = {
...
@@ -283,7 +283,7 @@ AVInputFormat audio_in_format = {
.
flags
=
AVFMT_NOFILE
,
.
flags
=
AVFMT_NOFILE
,
};
};
AVOutputFormat
audio_out_format
=
{
static
AVOutputFormat
audio_out_format
=
{
"audio_device"
,
"audio_device"
,
"audio grab and output"
,
"audio grab and output"
,
""
,
""
,
...
...
libav/avformat.h
View file @
c18a2692
...
@@ -335,7 +335,6 @@ int strstart(const char *str, const char *val, const char **ptr);
...
@@ -335,7 +335,6 @@ int strstart(const char *str, const char *val, const char **ptr);
int
stristart
(
const
char
*
str
,
const
char
*
val
,
const
char
**
ptr
);
int
stristart
(
const
char
*
str
,
const
char
*
val
,
const
char
**
ptr
);
void
pstrcpy
(
char
*
buf
,
int
buf_size
,
const
char
*
str
);
void
pstrcpy
(
char
*
buf
,
int
buf_size
,
const
char
*
str
);
char
*
pstrcat
(
char
*
buf
,
int
buf_size
,
const
char
*
s
);
char
*
pstrcat
(
char
*
buf
,
int
buf_size
,
const
char
*
s
);
int
match_ext
(
const
char
*
filename
,
const
char
*
extensions
);
struct
in_addr
;
struct
in_addr
;
int
resolve_host
(
struct
in_addr
*
sin_addr
,
const
char
*
hostname
);
int
resolve_host
(
struct
in_addr
*
sin_addr
,
const
char
*
hostname
);
...
...
libav/avi.h
View file @
c18a2692
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#define AVIF_WASCAPTUREFILE 0x00010000
#define AVIF_WASCAPTUREFILE 0x00010000
#define AVIF_COPYRIGHTED 0x00020000
#define AVIF_COPYRIGHTED 0x00020000
offset_t
start_tag
(
ByteIOContext
*
pb
,
char
*
tag
);
offset_t
start_tag
(
ByteIOContext
*
pb
,
c
onst
c
har
*
tag
);
void
end_tag
(
ByteIOContext
*
pb
,
offset_t
start
);
void
end_tag
(
ByteIOContext
*
pb
,
offset_t
start
);
typedef
struct
CodecTag
{
typedef
struct
CodecTag
{
...
@@ -15,14 +15,14 @@ typedef struct CodecTag {
...
@@ -15,14 +15,14 @@ typedef struct CodecTag {
unsigned
int
invalid_asf
:
1
;
unsigned
int
invalid_asf
:
1
;
}
CodecTag
;
}
CodecTag
;
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
);
int
put_wav_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
);
int
put_wav_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
enc
);
int
wav_codec_get_id
(
unsigned
int
tag
,
int
bps
);
int
wav_codec_get_id
(
unsigned
int
tag
,
int
bps
);
void
get_wav_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
codec
,
void
get_wav_header
(
ByteIOContext
*
pb
,
AVCodecContext
*
codec
,
int
has_extra_data
);
int
has_extra_data
);
extern
CodecTag
codec_bmp_tags
[];
extern
const
CodecTag
codec_bmp_tags
[];
extern
CodecTag
codec_wav_tags
[];
extern
const
CodecTag
codec_wav_tags
[];
unsigned
int
codec_get_tag
(
const
CodecTag
*
tags
,
int
id
);
unsigned
int
codec_get_tag
(
const
CodecTag
*
tags
,
int
id
);
int
codec_get_id
(
const
CodecTag
*
tags
,
unsigned
int
tag
);
int
codec_get_id
(
const
CodecTag
*
tags
,
unsigned
int
tag
);
libav/crc.c
View file @
c18a2692
...
@@ -91,7 +91,7 @@ static int crc_write_trailer(struct AVFormatContext *s)
...
@@ -91,7 +91,7 @@ static int crc_write_trailer(struct AVFormatContext *s)
return
0
;
return
0
;
}
}
AVOutputFormat
crc_format
=
{
static
AVOutputFormat
crc_format
=
{
"crc"
,
"crc"
,
"crc testing format"
,
"crc testing format"
,
NULL
,
NULL
,
...
...
libav/dv.c
View file @
c18a2692
...
@@ -49,8 +49,7 @@ static int dv_read_header(AVFormatContext *s,
...
@@ -49,8 +49,7 @@ static int dv_read_header(AVFormatContext *s,
}
}
/* XXX: build fake audio stream when DV audio decoder will be finished */
/* XXX: build fake audio stream when DV audio decoder will be finished */
int
dv_read_packet
(
AVFormatContext
*
s
,
static
int
dv_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
AVPacket
*
pkt
)
{
{
int
ret
,
size
,
dsf
;
int
ret
,
size
,
dsf
;
uint8_t
buf
[
4
];
uint8_t
buf
[
4
];
...
@@ -77,12 +76,12 @@ int dv_read_packet(AVFormatContext *s,
...
@@ -77,12 +76,12 @@ int dv_read_packet(AVFormatContext *s,
return
ret
;
return
ret
;
}
}
int
dv_read_close
(
AVFormatContext
*
s
)
static
int
dv_read_close
(
AVFormatContext
*
s
)
{
{
return
0
;
return
0
;
}
}
AVInputFormat
dv_iformat
=
{
static
AVInputFormat
dv_iformat
=
{
"dv"
,
"dv"
,
"DV video format"
,
"DV video format"
,
sizeof
(
DVDemuxContext
),
sizeof
(
DVDemuxContext
),
...
...
libav/ffm.c
View file @
c18a2692
...
@@ -651,7 +651,7 @@ static int ffm_probe(AVProbeData *p)
...
@@ -651,7 +651,7 @@ static int ffm_probe(AVProbeData *p)
return
0
;
return
0
;
}
}
AVInputFormat
ffm_iformat
=
{
static
AVInputFormat
ffm_iformat
=
{
"ffm"
,
"ffm"
,
"ffm format"
,
"ffm format"
,
sizeof
(
FFMContext
),
sizeof
(
FFMContext
),
...
@@ -662,7 +662,7 @@ AVInputFormat ffm_iformat = {
...
@@ -662,7 +662,7 @@ AVInputFormat ffm_iformat = {
ffm_seek
,
ffm_seek
,
};
};
AVOutputFormat
ffm_oformat
=
{
static
AVOutputFormat
ffm_oformat
=
{
"ffm"
,
"ffm"
,
"ffm format"
,
"ffm format"
,
""
,
""
,
...
...
libav/grab.c
View file @
c18a2692
...
@@ -312,7 +312,7 @@ static int grab_read_close(AVFormatContext *s1)
...
@@ -312,7 +312,7 @@ static int grab_read_close(AVFormatContext *s1)
return
0
;
return
0
;
}
}
AVInputFormat
video_grab_device_format
=
{
static
AVInputFormat
video_grab_device_format
=
{
"video_grab_device"
,
"video_grab_device"
,
"video grab"
,
"video grab"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -961,7 +961,7 @@ static int aiw_grab_read_close(AVFormatContext *s1)
...
@@ -961,7 +961,7 @@ static int aiw_grab_read_close(AVFormatContext *s1)
return
0
;
return
0
;
}
}
AVInputFormat
aiw_grab_device_format
=
{
static
AVInputFormat
aiw_grab_device_format
=
{
"aiw_grab_device"
,
"aiw_grab_device"
,
"All-In-Wonder (km read-based) video grab"
,
"All-In-Wonder (km read-based) video grab"
,
sizeof
(
AIWVideoData
),
sizeof
(
AIWVideoData
),
...
...
libav/img.c
View file @
c18a2692
...
@@ -719,7 +719,7 @@ static int img_write_trailer(AVFormatContext *s)
...
@@ -719,7 +719,7 @@ static int img_write_trailer(AVFormatContext *s)
return
0
;
return
0
;
}
}
AVInputFormat
pgm_iformat
=
{
static
AVInputFormat
pgm_iformat
=
{
"pgm"
,
"pgm"
,
"pgm image format"
,
"pgm image format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -732,7 +732,7 @@ AVInputFormat pgm_iformat = {
...
@@ -732,7 +732,7 @@ AVInputFormat pgm_iformat = {
.
extensions
=
"pgm"
,
.
extensions
=
"pgm"
,
};
};
AVOutputFormat
pgm_oformat
=
{
static
AVOutputFormat
pgm_oformat
=
{
"pgm"
,
"pgm"
,
"pgm image format"
,
"pgm image format"
,
""
,
""
,
...
@@ -746,7 +746,7 @@ AVOutputFormat pgm_oformat = {
...
@@ -746,7 +746,7 @@ AVOutputFormat pgm_oformat = {
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
};
};
AVInputFormat
pgmyuv_iformat
=
{
static
AVInputFormat
pgmyuv_iformat
=
{
"pgmyuv"
,
"pgmyuv"
,
"pgm with YUV content image format"
,
"pgm with YUV content image format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -758,7 +758,7 @@ AVInputFormat pgmyuv_iformat = {
...
@@ -758,7 +758,7 @@ AVInputFormat pgmyuv_iformat = {
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
};
};
AVOutputFormat
pgmyuv_oformat
=
{
static
AVOutputFormat
pgmyuv_oformat
=
{
"pgmyuv"
,
"pgmyuv"
,
"pgm with YUV content image format"
,
"pgm with YUV content image format"
,
""
,
""
,
...
@@ -772,7 +772,7 @@ AVOutputFormat pgmyuv_oformat = {
...
@@ -772,7 +772,7 @@ AVOutputFormat pgmyuv_oformat = {
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
};
};
AVInputFormat
ppm_iformat
=
{
static
AVInputFormat
ppm_iformat
=
{
"ppm"
,
"ppm"
,
"ppm image format"
,
"ppm image format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -785,7 +785,7 @@ AVInputFormat ppm_iformat = {
...
@@ -785,7 +785,7 @@ AVInputFormat ppm_iformat = {
.
extensions
=
"ppm"
,
.
extensions
=
"ppm"
,
};
};
AVOutputFormat
ppm_oformat
=
{
static
AVOutputFormat
ppm_oformat
=
{
"ppm"
,
"ppm"
,
"ppm image format"
,
"ppm image format"
,
""
,
""
,
...
@@ -799,7 +799,7 @@ AVOutputFormat ppm_oformat = {
...
@@ -799,7 +799,7 @@ AVOutputFormat ppm_oformat = {
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
|
AVFMT_RGB24
,
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
|
AVFMT_RGB24
,
};
};
AVInputFormat
imgyuv_iformat
=
{
static
AVInputFormat
imgyuv_iformat
=
{
".Y.U.V"
,
".Y.U.V"
,
".Y.U.V format"
,
".Y.U.V format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -812,7 +812,7 @@ AVInputFormat imgyuv_iformat = {
...
@@ -812,7 +812,7 @@ AVInputFormat imgyuv_iformat = {
.
extensions
=
"Y"
,
.
extensions
=
"Y"
,
};
};
AVOutputFormat
imgyuv_oformat
=
{
static
AVOutputFormat
imgyuv_oformat
=
{
".Y.U.V"
,
".Y.U.V"
,
".Y.U.V format"
,
".Y.U.V format"
,
""
,
""
,
...
@@ -826,7 +826,7 @@ AVOutputFormat imgyuv_oformat = {
...
@@ -826,7 +826,7 @@ AVOutputFormat imgyuv_oformat = {
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
AVFMT_NOFILE
|
AVFMT_NEEDNUMBER
,
};
};
AVInputFormat
pgmpipe_iformat
=
{
static
AVInputFormat
pgmpipe_iformat
=
{
"pgmpipe"
,
"pgmpipe"
,
"PGM pipe format"
,
"PGM pipe format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -837,7 +837,7 @@ AVInputFormat pgmpipe_iformat = {
...
@@ -837,7 +837,7 @@ AVInputFormat pgmpipe_iformat = {
NULL
,
NULL
,
};
};
AVOutputFormat
pgmpipe_oformat
=
{
static
AVOutputFormat
pgmpipe_oformat
=
{
"pgmpipe"
,
"pgmpipe"
,
"PGM pipe format"
,
"PGM pipe format"
,
""
,
""
,
...
@@ -850,7 +850,7 @@ AVOutputFormat pgmpipe_oformat = {
...
@@ -850,7 +850,7 @@ AVOutputFormat pgmpipe_oformat = {
img_write_trailer
,
img_write_trailer
,
};
};
AVInputFormat
pgmyuvpipe_iformat
=
{
static
AVInputFormat
pgmyuvpipe_iformat
=
{
"pgmyuvpipe"
,
"pgmyuvpipe"
,
"PGM YUV pipe format"
,
"PGM YUV pipe format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -861,7 +861,7 @@ AVInputFormat pgmyuvpipe_iformat = {
...
@@ -861,7 +861,7 @@ AVInputFormat pgmyuvpipe_iformat = {
NULL
,
NULL
,
};
};
AVOutputFormat
pgmyuvpipe_oformat
=
{
static
AVOutputFormat
pgmyuvpipe_oformat
=
{
"pgmyuvpipe"
,
"pgmyuvpipe"
,
"PGM YUV pipe format"
,
"PGM YUV pipe format"
,
""
,
""
,
...
@@ -874,7 +874,7 @@ AVOutputFormat pgmyuvpipe_oformat = {
...
@@ -874,7 +874,7 @@ AVOutputFormat pgmyuvpipe_oformat = {
img_write_trailer
,
img_write_trailer
,
};
};
AVInputFormat
ppmpipe_iformat
=
{
static
AVInputFormat
ppmpipe_iformat
=
{
"ppmpipe"
,
"ppmpipe"
,
"PPM pipe format"
,
"PPM pipe format"
,
sizeof
(
VideoData
),
sizeof
(
VideoData
),
...
@@ -886,7 +886,7 @@ AVInputFormat ppmpipe_iformat = {
...
@@ -886,7 +886,7 @@ AVInputFormat ppmpipe_iformat = {
.
flags
=
AVFMT_RGB24
,
.
flags
=
AVFMT_RGB24
,
};
};
AVOutputFormat
ppmpipe_oformat
=
{
static
AVOutputFormat
ppmpipe_oformat
=
{
"ppmpipe"
,
"ppmpipe"
,
"PPM pipe format"
,
"PPM pipe format"
,
""
,
""
,
...
@@ -901,7 +901,7 @@ AVOutputFormat ppmpipe_oformat = {
...
@@ -901,7 +901,7 @@ AVOutputFormat ppmpipe_oformat = {
};
};
AVOutputFormat
yuv4mpegpipe_oformat
=
{
static
AVOutputFormat
yuv4mpegpipe_oformat
=
{
"yuv4mpegpipe"
,
"yuv4mpegpipe"
,
"YUV4MPEG pipe format"
,
"YUV4MPEG pipe format"
,
""
,
""
,
...
...
libav/ogg.c
View file @
c18a2692
...
@@ -148,7 +148,7 @@ static int ogg_write_trailer(AVFormatContext *avfcontext) {
...
@@ -148,7 +148,7 @@ static int ogg_write_trailer(AVFormatContext *avfcontext) {
}
}
AVOutputFormat
ogg_oformat
=
{
static
AVOutputFormat
ogg_oformat
=
{
"ogg"
,
"ogg"
,
"Ogg Vorbis"
,
"Ogg Vorbis"
,
"audio/x-vorbis"
,
"audio/x-vorbis"
,
...
...
libav/rm.c
View file @
c18a2692
...
@@ -742,7 +742,7 @@ static int rm_probe(AVProbeData *p)
...
@@ -742,7 +742,7 @@ static int rm_probe(AVProbeData *p)
return
0
;
return
0
;
}
}
AVInputFormat
rm_iformat
=
{
static
AVInputFormat
rm_iformat
=
{
"rm"
,
"rm"
,
"rm format"
,
"rm format"
,
sizeof
(
RMContext
),
sizeof
(
RMContext
),
...
@@ -752,7 +752,7 @@ AVInputFormat rm_iformat = {
...
@@ -752,7 +752,7 @@ AVInputFormat rm_iformat = {
rm_read_close
,
rm_read_close
,
};
};
AVOutputFormat
rm_oformat
=
{
static
AVOutputFormat
rm_oformat
=
{
"rm"
,
"rm"
,
"rm format"
,
"rm format"
,
"audio/x-pn-realaudio"
,
"audio/x-pn-realaudio"
,
...
...
libav/utils.c
View file @
c18a2692
...
@@ -54,7 +54,7 @@ void av_register_output_format(AVOutputFormat *format)
...
@@ -54,7 +54,7 @@ void av_register_output_format(AVOutputFormat *format)
format
->
next
=
NULL
;
format
->
next
=
NULL
;
}
}
int
match_ext
(
const
char
*
filename
,
const
char
*
extensions
)
static
int
match_ext
(
const
char
*
filename
,
const
char
*
extensions
)
{
{
const
char
*
ext
,
*
p
;
const
char
*
ext
,
*
p
;
char
ext1
[
32
],
*
q
;
char
ext1
[
32
],
*
q
;
...
...
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