aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-07 12:59:32 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-12 10:33:19 -0500
commitd5ca70b10302b47c70c6bc25400125b30d2ef619 (patch)
treed69ea8596d72904d15402298aae0f2d0adb17b57
parent49e7af06f2fc68c9031cf7b67fe1cba066e2ace2 (diff)
downloadffmpeg-d5ca70b10302b47c70c6bc25400125b30d2ef619.tar.gz
dv: set channel layout
-rw-r--r--libavformat/dv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 5ce73f7a2a..1730972213 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -33,6 +33,7 @@
#include "internal.h"
#include "libavcodec/dv_profile.h"
#include "libavcodec/dvdata.h"
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "dv.h"
@@ -246,6 +247,7 @@ static int dv_extract_audio_info(DVDemuxContext* c, uint8_t* frame)
}
c->ast[i]->codec->sample_rate = dv_audio_frequency[freq];
c->ast[i]->codec->channels = 2;
+ c->ast[i]->codec->channel_layout = AV_CH_LAYOUT_STEREO;
c->ast[i]->codec->bit_rate = 2 * dv_audio_frequency[freq] * 16;
c->ast[i]->start_time = 0;
}