~ubuntu-branches/ubuntu/utopic/libav/utopic

« back to all changes in this revision

Viewing changes to libavformat/dsicin.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-12-21 15:32:13 UTC
  • mto: (1.2.18)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20121221153213-fudzrugjzivtv0wp
Tags: upstream-9~beta3
ImportĀ upstreamĀ versionĀ 9~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 * Delphine Software International CIN file demuxer
25
25
 */
26
26
 
 
27
#include "libavutil/channel_layout.h"
27
28
#include "libavutil/intreadwrite.h"
28
29
#include "avformat.h"
29
30
#include "internal.h"
131
132
    st->codec->codec_id = AV_CODEC_ID_DSICINAUDIO;
132
133
    st->codec->codec_tag = 0;  /* no tag */
133
134
    st->codec->channels = 1;
 
135
    st->codec->channel_layout = AV_CH_LAYOUT_MONO;
134
136
    st->codec->sample_rate = 22050;
135
137
    st->codec->bits_per_coded_sample = 8;
136
138
    st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample * st->codec->channels;