[FFmpeg-cvslog] bmv: set channel layout

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


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

bmv: set channel layout

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

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

diff --git a/libavformat/bmv.c b/libavformat/bmv.c
index fe5db3f..ce157e8 100644
--- a/libavformat/bmv.c
+++ b/libavformat/bmv.c
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/channel_layout.h"
 #include "avformat.h"
 #include "internal.h"
 
@@ -58,6 +59,7 @@ static int bmv_read_header(AVFormatContext *s)
     ast->codec->codec_type      = AVMEDIA_TYPE_AUDIO;
     ast->codec->codec_id        = AV_CODEC_ID_BMV_AUDIO;
     ast->codec->channels        = 2;
+    ast->codec->channel_layout  = AV_CH_LAYOUT_STEREO;
     ast->codec->sample_rate     = 22050;
     avpriv_set_pts_info(ast, 16, 1, 22050);
 



More information about the ffmpeg-cvslog mailing list