aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/jvdec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 16:47:15 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:20 -0500
commitef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b (patch)
treea50279904922edbd090dd16310ee45afe2be7693 /libavformat/jvdec.c
parent43711312831504c42d2db3bbeafc893883bee911 (diff)
downloadffmpeg-ef1b23ad21e3f12fc4ff2a73a6d4d4cd9d630c4b.tar.gz
jvdec: set channel layout
Diffstat (limited to 'libavformat/jvdec.c')
-rw-r--r--libavformat/jvdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 47a6142403..cf9df8c977 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -25,6 +25,7 @@
* @author Peter Ross <pross@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);