projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cc72ce
)
twinvq: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 23 Oct 2012 17:17:17 +0000
(13:17 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 1 Nov 2012 15:29:19 +0000
(11:29 -0400)
libavcodec/twinvq.c
patch
|
blob
|
history
diff --git
a/libavcodec/twinvq.c
b/libavcodec/twinvq.c
index 50ee6266b3bd724d95b2c4f139facf362934de18..3159e498e77daeb315662c784b6f6d21085539d2 100644
(file)
--- a/
libavcodec/twinvq.c
+++ b/
libavcodec/twinvq.c
@@
-19,6
+19,7
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/audioconvert.h"
#include "libavutil/float_dsp.h"
#include "avcodec.h"
#include "get_bits.h"
@@
-1131,6
+1132,9
@@
static av_cold int twin_decode_init(AVCodecContext *avctx)
avctx->channels);
return -1;
}
+ avctx->channel_layout = avctx->channels == 1 ? AV_CH_LAYOUT_MONO :
+ AV_CH_LAYOUT_STEREO;
+
ibps = avctx->bit_rate / (1000 * avctx->channels);
switch ((isampf << 8) + ibps) {