[FFmpeg-cvslog] jvdec: set channel layout

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


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr  7 16:47:15 2012 -0400| [ef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b] | committer: Justin Ruggles

jvdec: set channel layout

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

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

diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 47a6142..cf9df8c 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -25,6 +25,7 @@
  * @author Peter Ross <pross at xvid.org>
  */
 
+#include "libavutil/channel_layout.h"
 #include "libavutil/intreadwrite.h"
 #include "avformat.h"
 #include "internal.h"
@@ -91,6 +92,7 @@ static int read_header(AVFormatContext *s)
     ast->codec->codec_tag   = 0; /* no fourcc */
     ast->codec->sample_rate = avio_rl16(pb);
     ast->codec->channels    = 1;
+    ast->codec->channel_layout = AV_CH_LAYOUT_MONO;
     avpriv_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
 
     avio_skip(pb, 10);



More information about the ffmpeg-cvslog mailing list