diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2001-01-01 01:08:20 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-10-25 17:08:58 +0200 |
commit | 254056c4ab6161d687caf8e9b837571db76e60c6 (patch) | |
tree | ed63d7567c5ae676a09cd03bb7f44348a607e3b6 /libavformat/pcmdec.c | |
parent | 22f7942fe7d7349e3562ac68fa101d9efec522df (diff) | |
download | ffmpeg-254056c4ab6161d687caf8e9b837571db76e60c6.tar.gz |
pcm: change references to raw to pcm
Diffstat (limited to 'libavformat/pcmdec.c')
-rw-r--r-- | libavformat/pcmdec.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index de6f13e0c5..716d8b7977 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -27,15 +27,15 @@ #define RAW_SAMPLES 1024 -typedef struct RawAudioDemuxerContext { +typedef struct PCMAudioDemuxerContext { AVClass *class; int sample_rate; int channels; -} RawAudioDemuxerContext; +} PCMAudioDemuxerContext; -static int raw_read_header(AVFormatContext *s) +static int pcm_read_header(AVFormatContext *s) { - RawAudioDemuxerContext *s1 = s->priv_data; + PCMAudioDemuxerContext *s1 = s->priv_data; AVStream *st; st = avformat_new_stream(s, NULL); @@ -60,7 +60,7 @@ static int raw_read_header(AVFormatContext *s) return 0; } -static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) +static int pcm_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size, bps; // AVStream *st = s->streams[0]; @@ -82,8 +82,8 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) } static const AVOption pcm_options[] = { - { "sample_rate", "", offsetof(RawAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, - { "channels", "", offsetof(RawAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, + { "sample_rate", "", offsetof(PCMAudioDemuxerContext, sample_rate), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, + { "channels", "", offsetof(PCMAudioDemuxerContext, channels), AV_OPT_TYPE_INT, {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { NULL }, }; @@ -97,9 +97,9 @@ static const AVClass name_ ## _demuxer_class = { \ AVInputFormat ff_pcm_ ## name_ ## _demuxer = { \ .name = #name_, \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \ - .priv_data_size = sizeof(RawAudioDemuxerContext), \ - .read_header = raw_read_header, \ - .read_packet = raw_read_packet, \ + .priv_data_size = sizeof(PCMAudioDemuxerContext), \ + .read_header = pcm_read_header, \ + .read_packet = pcm_read_packet, \ .read_seek = ff_pcm_read_seek, \ .flags = AVFMT_GENERIC_INDEX, \ .extensions = ext, \ |