comparison smacker.c @ 8174:f11197441364 libavcodec

Add channel layout to several audio decoders I maintain
author kostya
date Wed, 19 Nov 2008 14:57:48 +0000
parents 85ab7655ad4d
children 57d9d1f7955a
comparison
equal deleted inserted replaced
8173:471b16105266 8174:f11197441364
557 557
558 558
559 static av_cold int smka_decode_init(AVCodecContext *avctx) 559 static av_cold int smka_decode_init(AVCodecContext *avctx)
560 { 560 {
561 avctx->sample_fmt = SAMPLE_FMT_S16; 561 avctx->sample_fmt = SAMPLE_FMT_S16;
562 avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO;
562 return 0; 563 return 0;
563 } 564 }
564 565
565 /** 566 /**
566 * Decode Smacker audio data 567 * Decode Smacker audio data