diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-23 20:05:55 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-25 15:55:46 +0200 |
commit | 5b3865fc5f9675dd55f7dd7d5ae3b9ed58c3310c (patch) | |
tree | c2a0da27b7cd1918d45a730ef143d9307d56b578 /libavformat/pcmdec.c | |
parent | 2ea8faf39ff6f21c2faaf8f9bd060a6636ea65fc (diff) | |
download | ffmpeg-5b3865fc5f9675dd55f7dd7d5ae3b9ed58c3310c.tar.gz |
rawdec: add sample_rate/channels private options.
Diffstat (limited to 'libavformat/pcmdec.c')
-rw-r--r-- | libavformat/pcmdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index a5b82789d6..343bbf0ae2 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -50,7 +50,7 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt) AVInputFormat ff_pcm_ ## name ## _demuxer = {\ #name,\ NULL_IF_CONFIG_SMALL(long_name),\ - 0,\ + sizeof(RawAudioDemuxerContext),\ NULL,\ ff_raw_read_header,\ raw_read_packet,\ @@ -59,6 +59,7 @@ AVInputFormat ff_pcm_ ## name ## _demuxer = {\ .flags= AVFMT_GENERIC_INDEX,\ .extensions = ext,\ .value = codec,\ + .priv_class = &ff_rawaudio_demuxer_class,\ }; PCMDEF(f64be, "PCM 64 bit floating-point big-endian format", |