[FFmpeg-cvslog] r22817 - trunk/libavcodec/mpeg4audio.c
alexc
subversion
Thu Apr 8 08:04:37 CEST 2010
Author: alexc
Date: Thu Apr 8 08:04:37 2010
New Revision: 22817
Log:
Use get_bits_left() in the sync extension check.
Modified:
trunk/libavcodec/mpeg4audio.c
Modified: trunk/libavcodec/mpeg4audio.c
==============================================================================
--- trunk/libavcodec/mpeg4audio.c Thu Apr 8 08:04:31 2010 (r22816)
+++ trunk/libavcodec/mpeg4audio.c Thu Apr 8 08:04:37 2010 (r22817)
@@ -115,8 +115,7 @@ int ff_mpeg4audio_get_config(MPEG4AudioC
}
if (c->ext_object_type != AOT_SBR) {
- int bits_left = buf_size*8 - get_bits_count(&gb);
- for (; bits_left > 15; bits_left--) {
+ while (get_bits_left(&gb) > 15) {
if (show_bits(&gb, 11) == 0x2b7) { // sync extension
get_bits(&gb, 11);
c->ext_object_type = get_object_type(&gb);
More information about the ffmpeg-cvslog
mailing list