projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a5853
)
rsodec: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 7 Apr 2012 22:18:37 +0000
(18:18 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 12 Nov 2012 15:33:21 +0000
(10:33 -0500)
libavformat/rsodec.c
patch
|
blob
|
history
diff --git
a/libavformat/rsodec.c
b/libavformat/rsodec.c
index
f5bcebb
..
c3016ca
100644
(file)
--- a/
libavformat/rsodec.c
+++ b/
libavformat/rsodec.c
@@
-20,6
+20,7
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
@@
-63,6
+64,7
@@
static int rso_read_header(AVFormatContext *s)
st->codec->codec_tag = id;
st->codec->codec_id = codec;
st->codec->channels = 1;
+ st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->sample_rate = rate;
avpriv_set_pts_info(st, 64, 1, rate);