aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 18:59:00 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:23 -0500
commitb9629acb6b647b31b8b4e3932e836189bd03e5b9 (patch)
treedf078defaf918739329e159c2b30497dcdd5903c
parent935fbb66ef325019ee5a64d1efae69282c68d050 (diff)
downloadffmpeg-b9629acb6b647b31b8b4e3932e836189bd03e5b9.tar.gz
yop: set channel layout
-rw-r--r--libavformat/yop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/yop.c b/libavformat/yop.c
index 51d088bdd2..351938b7e9 100644
--- 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