gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server/swf tag_loaders.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server/swf tag_loaders.cpp
Date: Wed, 26 Mar 2008 16:51:55 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/03/26 16:51:55

Modified files:
        server/swf     : tag_loaders.cpp 

Log message:
        fix unused variable warning

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/tag_loaders.cpp?cvsroot=gnash&r1=1.192&r2=1.193

Patches:
Index: tag_loaders.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/swf/tag_loaders.cpp,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -b -r1.192 -r1.193
--- tag_loaders.cpp     26 Mar 2008 16:12:41 -0000      1.192
+++ tag_loaders.cpp     26 Mar 2008 16:51:55 -0000      1.193
@@ -1482,15 +1482,12 @@
     media::audioCodecType format = sinfo->getFormat();
     unsigned int sample_count = sinfo->getSampleCount();
 
-    // discard garbage data if format is MP3
+    // MP3 format blocks have additional info
     if (format == media::AUDIO_CODEC_MP3)
     {
-        // 2bytes is sampleCount
-        // 2bytes is seekSamples
-        //log_debug("Skipping 4 garbage bytes of MP3 format... (2 are samples 
count, 2 are seek samples!)");
         in->ensureBytes(4);
-        //in->skip_bytes(4);
-        unsigned int samplesCount = in->read_u16();
+       // FIXME: use these values !
+        unsigned int samplesCount = in->read_u16(); UNUSED(samplesCount);
         unsigned int seekSamples = in->read_u16();
        ONCE ( if ( seekSamples ) log_unimpl("MP3 soundblock seek samples") );
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]