summaryrefslogtreecommitdiff
path: root/libavformat/bmv.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 12:12:35 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:18 -0500
commite8088d6e4b1255a8a5969ef925e4eb3a01f0988b (patch)
tree3e347ce8ebf90ae5d1840e11f6293acf1ee85478 /libavformat/bmv.c
parent2fe804f316db5d58974d43f05299cc6d14b975ed (diff)
bmv: set channel layout
Diffstat (limited to 'libavformat/bmv.c')
-rw-r--r--libavformat/bmv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/bmv.c b/libavformat/bmv.c
index fe5db3f004..ce157e842e 100644
--- a/libavformat/bmv.c
+++ b/libavformat/bmv.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"
@@ -58,6 +59,7 @@ static int bmv_read_header(AVFormatContext *s)
ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codec->codec_id = AV_CODEC_ID_BMV_AUDIO;
ast->codec->channels = 2;
+ ast->codec->channel_layout = AV_CH_LAYOUT_STEREO;
ast->codec->sample_rate = 22050;
avpriv_set_pts_info(ast, 16, 1, 22050);