Skip to content

Commit

Permalink
dsicin: set channel layout
Browse files Browse the repository at this point in the history
  • Loading branch information
justinruggles committed Nov 12, 2012
1 parent a05a637 commit 49e7af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavformat/dsicin.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Delphine Software International CIN file demuxer
*/

#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
Expand Down Expand Up @@ -131,6 +132,7 @@ static int cin_read_header(AVFormatContext *s)
st->codec->codec_id = AV_CODEC_ID_DSICINAUDIO;
st->codec->codec_tag = 0; /* no tag */
st->codec->channels = 1;
st->codec->channel_layout = AV_CH_LAYOUT_MONO;
st->codec->sample_rate = 22050;
st->codec->bits_per_coded_sample = 8;
st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample * st->codec->channels;
Expand Down

0 comments on commit 49e7af0

Please sign in to comment.