diff libaf/af_lavcac3enc.c @ 36335:f77a74ebb95e

Quick an inefficient hack to enable planar encoding. Should fix bugzilla #2094.
author reimar
date Sun, 25 Aug 2013 11:30:45 +0000
parents c1033e9288b1
children
line wrap: on
line diff
--- a/libaf/af_lavcac3enc.c	Sun Aug 25 11:30:43 2013 +0000
+++ b/libaf/af_lavcac3enc.c	Sun Aug 25 11:30:45 2013 +0000
@@ -106,7 +106,7 @@
             // Put sample parameters
             s->lavc_actx->channels = af->data->nch;
             s->lavc_actx->sample_rate = af->data->rate;
-            s->lavc_actx->sample_fmt  = AV_SAMPLE_FMT_S16;
+            s->lavc_actx->sample_fmt  = AV_SAMPLE_FMT_S16P;
             s->lavc_actx->bit_rate = bit_rate;
 
             if(avcodec_open2(s->lavc_actx, s->lavc_acodec, NULL) < 0) {