Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
254056c4
Commit
254056c4
authored
Jan 01, 2001
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm: change references to raw to pcm
parent
22f7942f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
pcmdec.c
libavformat/pcmdec.c
+10
-10
No files found.
libavformat/pcmdec.c
View file @
254056c4
...
@@ -27,15 +27,15 @@
...
@@ -27,15 +27,15 @@
#define RAW_SAMPLES 1024
#define RAW_SAMPLES 1024
typedef
struct
Raw
AudioDemuxerContext
{
typedef
struct
PCM
AudioDemuxerContext
{
AVClass
*
class
;
AVClass
*
class
;
int
sample_rate
;
int
sample_rate
;
int
channels
;
int
channels
;
}
Raw
AudioDemuxerContext
;
}
PCM
AudioDemuxerContext
;
static
int
raw
_read_header
(
AVFormatContext
*
s
)
static
int
pcm
_read_header
(
AVFormatContext
*
s
)
{
{
Raw
AudioDemuxerContext
*
s1
=
s
->
priv_data
;
PCM
AudioDemuxerContext
*
s1
=
s
->
priv_data
;
AVStream
*
st
;
AVStream
*
st
;
st
=
avformat_new_stream
(
s
,
NULL
);
st
=
avformat_new_stream
(
s
,
NULL
);
...
@@ -60,7 +60,7 @@ static int raw_read_header(AVFormatContext *s)
...
@@ -60,7 +60,7 @@ static int raw_read_header(AVFormatContext *s)
return
0
;
return
0
;
}
}
static
int
raw
_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
static
int
pcm
_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
{
int
ret
,
size
,
bps
;
int
ret
,
size
,
bps
;
// AVStream *st = s->streams[0];
// AVStream *st = s->streams[0];
...
@@ -82,8 +82,8 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -82,8 +82,8 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
static
const
AVOption
pcm_options
[]
=
{
static
const
AVOption
pcm_options
[]
=
{
{
"sample_rate"
,
""
,
offsetof
(
Raw
AudioDemuxerContext
,
sample_rate
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
AV_OPT_FLAG_DECODING_PARAM
},
{
"sample_rate"
,
""
,
offsetof
(
PCM
AudioDemuxerContext
,
sample_rate
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
INT_MAX
,
AV_OPT_FLAG_DECODING_PARAM
},
{
"channels"
,
""
,
offsetof
(
Raw
AudioDemuxerContext
,
channels
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
INT_MAX
,
AV_OPT_FLAG_DECODING_PARAM
},
{
"channels"
,
""
,
offsetof
(
PCM
AudioDemuxerContext
,
channels
),
AV_OPT_TYPE_INT
,
{.
i64
=
1
},
0
,
INT_MAX
,
AV_OPT_FLAG_DECODING_PARAM
},
{
NULL
},
{
NULL
},
};
};
...
@@ -97,9 +97,9 @@ static const AVClass name_ ## _demuxer_class = { \
...
@@ -97,9 +97,9 @@ static const AVClass name_ ## _demuxer_class = { \
AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \
AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \
.name = #name_, \
.name = #name_, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
.priv_data_size = sizeof(
Raw
AudioDemuxerContext), \
.priv_data_size = sizeof(
PCM
AudioDemuxerContext), \
.read_header =
raw
_read_header, \
.read_header =
pcm
_read_header, \
.read_packet =
raw
_read_packet, \
.read_packet =
pcm
_read_packet, \
.read_seek = ff_pcm_read_seek, \
.read_seek = ff_pcm_read_seek, \
.flags = AVFMT_GENERIC_INDEX, \
.flags = AVFMT_GENERIC_INDEX, \
.extensions = ext, \
.extensions = ext, \
...
...
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