[FFmpeg-soc] [soc]: r2568 - mlp/mlpdec.c

ramiro subversion at mplayerhq.hu
Tue Jun 24 16:36:51 CEST 2008


Author: ramiro
Date: Tue Jun 24 16:36:50 2008
New Revision: 2568

Log:
Use bytes_left instead of buf_size.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Tue Jun 24 16:36:50 2008
@@ -982,7 +982,6 @@ static int read_access_unit(AVCodecConte
         return -1;
 
     buf      += 4;
-    buf_size -= 4;
     bytes_left -= 4;
 
     init_get_bits(&gb, buf, bytes_left * 8);
@@ -1031,7 +1030,7 @@ static int read_access_unit(AVCodecConte
     }
 
     buf += get_bits_count(&gb) >> 3;
-    buf_size -= get_bits_count(&gb) >> 3;
+    bytes_left -= get_bits_count(&gb) >> 3;
 
     for (substr = 0; substr <= m->max_decoded_substream; substr++) {
         init_get_bits(&gb, buf, substream_data_len[substr] * 8);
@@ -1105,7 +1104,7 @@ static int read_access_unit(AVCodecConte
         }
 
         buf += substream_data_len[substr];
-        buf_size -= substream_data_len[substr];
+        bytes_left -= substream_data_len[substr];
     }
 
     rematrix_channels(m, substr - 1);



More information about the FFmpeg-soc mailing list