Mercurial > libavcodec.hg
comparison faad.c @ 2059:ad972ab280bc libavcodec
sample_rate and channels in aac audio patch by (Luca Abeni <lucabe72 at email dot it>)
author | michael |
---|---|
date | Sat, 05 Jun 2004 22:36:43 +0000 |
parents | d4525c3065d0 |
children | c28b03fea50f |
comparison
equal
deleted
inserted
replaced
2058:781ba1c85d46 | 2059:ad972ab280bc |
---|---|
114 // else r = s->faacDecInit(s->faac_handle ... ); | 114 // else r = s->faacDecInit(s->faac_handle ... ); |
115 | 115 |
116 if (r < 0) | 116 if (r < 0) |
117 av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d sr:%ld ch:%ld s:%d\n", | 117 av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d sr:%ld ch:%ld s:%d\n", |
118 r, samplerate, (long)channels, avctx->extradata_size); | 118 r, samplerate, (long)channels, avctx->extradata_size); |
119 avctx->sample_rate = samplerate; | |
120 avctx->channels = channels; | |
121 | |
119 return r; | 122 return r; |
120 } | 123 } |
121 | 124 |
122 static int faac_init_aac(AVCodecContext *avctx) | 125 static int faac_init_aac(AVCodecContext *avctx) |
123 { | 126 { |