[FFmpeg-cvslog] mvi: set channel layout
Justin Ruggles
git at videolan.org
Tue Nov 13 11:18:03 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr 7 17:17:19 2012 -0400| [66d7ceb4aa0a17c72de9a63748953d53a1e95a12] | committer: Justin Ruggles
mvi: set channel layout
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66d7ceb4aa0a17c72de9a63748953d53a1e95a12
---
libavformat/mvi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/mvi.c b/libavformat/mvi.c
index c5aee5a..10ec8bb 100644
--- a/libavformat/mvi.c
+++ b/libavformat/mvi.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"
@@ -81,6 +82,7 @@ static int read_header(AVFormatContext *s)
ast->codec->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codec->codec_id = AV_CODEC_ID_PCM_U8;
ast->codec->channels = 1;
+ ast->codec->channel_layout = AV_CH_LAYOUT_MONO;
ast->codec->bits_per_coded_sample = 8;
ast->codec->bit_rate = ast->codec->sample_rate * 8;
More information about the ffmpeg-cvslog
mailing list