rawdec: add sample_rate/channels private options.

This commit is contained in:
Anton Khirnov
2011-05-23 20:05:55 +02:00
parent 2ea8faf39f
commit 5b3865fc5f
3 changed files with 42 additions and 6 deletions

View File

@ -23,6 +23,15 @@
#define AVFORMAT_RAWDEC_H
#include "avformat.h"
#include "libavutil/log.h"
typedef struct RawAudioDemuxerContext {
AVClass *class;
int sample_rate;
int channels;
} RawAudioDemuxerContext;
extern const AVClass ff_rawaudio_demuxer_class;
int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap);