Tue, 19 Feb 2013 07:15:09 -0800 Post Comments
Sorry for my naive questions. I'm trying to decode audio stream using
avcodec_decode_audio4(). After I obtained the audio frame by
avcodec_decode_audio4(), I'd love to resample audio signals using
its definition is pasted as follows:
int swr_convert(struct SwrContext *s, uint8_t **out, int out_count,
const uint8_t **in , int in_count);
Now, my question:
1) is swr_convert() able to convert audio signals from 1 channel to 2
2) for swr_convert(), if there are 2 audio channels (stereo audio signals),
how is the data organized in unit8_t **out?
Does out only contain the left channel audio signals?
Does out contain the right channel audio signals?
Why in my case, out always points to NULL ?
Please do help... Thank you...
cell: +1 604-362-5816
Welcome to Vision Open http://www.visionopen.com