changeset 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 781ba1c85d46
children d07784fbdad1
files faad.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/faad.c	Sat Jun 05 22:33:47 2004 +0000
+++ b/faad.c	Sat Jun 05 22:36:43 2004 +0000
@@ -116,6 +116,9 @@
     if (r < 0)
 	av_log(avctx, AV_LOG_ERROR, "faacDecInit2 failed r:%d   sr:%ld  ch:%ld  s:%d\n",
 		r, samplerate, (long)channels, avctx->extradata_size);
+    avctx->sample_rate = samplerate;
+    avctx->channels = channels;
+
     return r;
 }