[FFmpeg-cvslog] dv: set channel layout

Justin Ruggles git at videolan.org
Tue Nov 13 11:00:17 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr  7 12:59:32 2012 -0400| [d5ca70b10302b47c70c6bc25400125b30d2ef619] | committer: Justin Ruggles

dv: set channel layout

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5ca70b10302b47c70c6bc25400125b30d2ef619
---

 libavformat/dv.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 5ce73f7..1730972 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -33,6 +33,7 @@
 #include "internal.h"
 #include "libavcodec/dv_profile.h"
 #include "libavcodec/dvdata.h"
+#include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mathematics.h"
 #include "dv.h"
@@ -246,6 +247,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
         }
         c->ast[i]->codec->sample_rate = dv_audio_frequency[freq];
         c->ast[i]->codec->channels    = 2;
+        c->ast[i]->codec->channel_layout = AV_CH_LAYOUT_STEREO;
         c->ast[i]->codec->bit_rate    = 2 * dv_audio_frequency[freq] * 16;
         c->ast[i]->start_time         = 0;
     }



More information about the ffmpeg-cvslog mailing list