[Ffmpeg-devel] bits_per_sample from input

Dmitry Belous dmitry_belous
Sun Feb 4 18:04:57 CET 2007


Hi, All
I am writing "custom" encoder/decoder/muxer/demuxer
Can I get a bits_per_sample from input stream in encoder.
For example,
$ ffmpeg -i file.wav file.custom
I want to use bits_per_sample from file.wav in "custom" encoder.
static int masc_init(AVCodecContext *avctx) {
	avctxt->bits_per_sample = ???; //??? - bps from input
}
--
Dmitry




More information about the ffmpeg-devel mailing list