git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4371131
)
jvdec: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 7 Apr 2012 20:47:15 +0000
(16:47 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 12 Nov 2012 15:33:20 +0000
(10:33 -0500)
libavformat/jvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/jvdec.c
b/libavformat/jvdec.c
index
47a6142
..
cf9df8c
100644
(file)
--- 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);