[FFmpeg-cvslog] r25639 - trunk/libavcodec/aacdec.c

janne subversion
Tue Nov 2 09:28:55 CET 2010


Author: janne
Date: Tue Nov  2 09:28:55 2010
New Revision: 25639

Log:
aacdec: return consumed bits in decode_audio_specific_config

Modified:
   trunk/libavcodec/aacdec.c

Modified: trunk/libavcodec/aacdec.c
==============================================================================
--- trunk/libavcodec/aacdec.c	Tue Nov  2 09:28:28 2010	(r25638)
+++ trunk/libavcodec/aacdec.c	Tue Nov  2 09:28:55 2010	(r25639)
@@ -439,7 +439,7 @@ static int decode_ga_specific_config(AAC
  * @param   data        pointer to AVCodecContext extradata
  * @param   data_size   size of AVCCodecContext extradata
  *
- * @return  Returns error status. 0 - OK, !0 - error
+ * @return  Returns error status or number of consumed bits. <0 - error
  */
 static int decode_audio_specific_config(AACContext *ac,
                                         MPEG4AudioConfig *m4ac, void *data,
@@ -473,7 +473,7 @@ static int decode_audio_specific_config(
         return -1;
     }
 
-    return 0;
+    return get_bits_count(&gb);
 }
 
 /**



More information about the ffmpeg-cvslog mailing list