On 10/24/2012 11:29 PM, Janne Grunau wrote: > On 2012-10-24 21:19:42 +0200, Luca Barbato wrote: >> The code shared is not actually shared with anything else. >> --- >> libavformat/Makefile | 40 ++++++++++++++++++++-------------------- >> libavformat/pcmdec.c | 37 +++++++++++++++++++++++++++++++++++-- >> 2 files changed, 55 insertions(+), 22 deletions(-) >> >> diff --git a/libavformat/Makefile b/libavformat/Makefile >> index 832ea41..acf0500 100644 >> --- a/libavformat/pcmdec.c >> +++ b/libavformat/pcmdec.c >> @@ -20,13 +20,46 @@ >> */ >> >> #include "avformat.h" >> -#include "rawdec.h" >> +#include "internal.h" >> #include "pcm.h" >> #include "libavutil/log.h" >> #include "libavutil/opt.h" >> >> #define RAW_SAMPLES 1024 >> >> +typedef struct RawAudioDemuxerContext { >> + AVClass *class; >> + int sample_rate; >> + int channels; >> +} RawAudioDemuxerContext; >> + >> +static int raw_read_header(AVFormatContext *s) > > bikeshed: pcm might be a better prefix for the function and context
Will rename all later. _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel