[FFmpeg-devel] [PATCH 3/7] aacdec: return consumed bits in decode_audio_specific_config
Janne Grunau
janne-ffmpeg
Fri Oct 29 00:44:54 CEST 2010
---
libavcodec/aacdec.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index ae1dff9..5e290e6 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -440,7 +440,7 @@ static int decode_ga_specific_config(AACContext *ac, GetBitContext *gb,
* @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,
@@ -474,7 +474,7 @@ static int decode_audio_specific_config(AACContext *ac,
return -1;
}
- return 0;
+ return get_bits_count(&gb);
}
/**
--
1.7.3.2
More information about the ffmpeg-devel
mailing list