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:
935fbb6
)
yop: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 7 Apr 2012 22:59:00 +0000
(18:59 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 12 Nov 2012 15:33:23 +0000
(10:33 -0500)
libavformat/yop.c
patch
|
blob
|
history
diff --git
a/libavformat/yop.c
b/libavformat/yop.c
index 51d088bdd26808a6d9e0e09b1593c03126a931ca..351938b7e9789ef28729947d9229741b66efe8a8 100644
(file)
--- a/
libavformat/yop.c
+++ b/
libavformat/yop.c
@@
-22,6
+22,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"
@@
-74,6
+75,7
@@
static int yop_read_header(AVFormatContext *s)
audio_dec->codec_type = AVMEDIA_TYPE_AUDIO;
audio_dec->codec_id = AV_CODEC_ID_ADPCM_IMA_APC;
audio_dec->channels = 1;
+ audio_dec->channels = AV_CH_LAYOUT_MONO;
audio_dec->sample_rate = 22050;
// Video