]> git.sesse.net Git - mlt/commit
Fix sample rate and channel count from avformat producer.
authorDan Dennedy <dan@dennedy.org>
Sun, 1 May 2011 02:03:13 +0000 (19:03 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 1 May 2011 02:03:13 +0000 (19:03 -0700)
commit0fea55cb68faaf926a9209c5ef41e01259ac6111
treecf097c5681cab286ce9c348f5cddcf114b5e2ab4
parent84b5b22fa3488ab56a708022d8c318ddcdb01c2d
Fix sample rate and channel count from avformat producer.

If unable to resample or the decoder does not give the requested channel
count, then we should return the actual values so downstream components
can do the correct thing if they can. A good example of this is 6
channel AAC when the consumer requests 2 channels. Unlike the AC-3
decoder, the AAC decoder can not downmix. So, we were returning audio
pcm containing 6 channels but with a channel count of 2.
src/modules/avformat/producer_avformat.c