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

« back to all changes in this revision

Viewing changes to libavformat/mmf.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:
18
18
 * License along with Libav; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 */
 
21
 
 
22
#include "libavutil/channel_layout.h"
21
23
#include "avformat.h"
22
24
#include "internal.h"
23
25
#include "avio_internal.h"
249
251
    st->codec->codec_id = AV_CODEC_ID_ADPCM_YAMAHA;
250
252
    st->codec->sample_rate = rate;
251
253
    st->codec->channels = 1;
 
254
    st->codec->channel_layout = AV_CH_LAYOUT_MONO;
252
255
    st->codec->bits_per_coded_sample = 4;
253
256
    st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample;
254
257