gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r9977: Return the actual size of the


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9977: Return the actual size of the buffer. Fixes bug #24503.
Date: Fri, 10 Oct 2008 16:49:00 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9977
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Fri 2008-10-10 16:49:00 +0200
message:
  Return the actual size of the buffer. Fixes bug #24503.
modified:
  libmedia/ffmpeg/AudioDecoderFfmpeg.cpp
=== modified file 'libmedia/ffmpeg/AudioDecoderFfmpeg.cpp'
--- a/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp    2008-10-08 15:50:26 +0000
+++ b/libmedia/ffmpeg/AudioDecoderFfmpeg.cpp    2008-10-10 14:49:00 +0000
@@ -439,9 +439,10 @@
                        abort();
                }
 
-               // we let the consistency check run before we override outSize
-               // to make debugging values correct
-               outSize = resampledFrameSize;
+        // Use the actual number of samples returned, multiplied
+        // to get size in bytes (not two-byte samples) and for 
+        // stereo?
+               outSize = samples * 2 * 2;
 
        }
 


reply via email to

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