GNOME Bugzilla – Bug 678509
rtmpsrc outputs truncated buffers
Last modified: 2012-06-21 07:37:22 UTC
rtmpsrc outputs truncated buffers because, when enough data is read to fill the buffer, the amount read that time (todo) is set to zero before it's added to the cumulative buffer size (bsize). The buffer is then truncated to bsize resulting in lost data.
Created attachment 216886 [details] [review] Patch to fix rtmpsrc truncation This patch fixes it for me.
Comment on attachment 216886 [details] [review] Patch to fix rtmpsrc truncation commit 96b7059d242421cba1dde21b841f4b95fb3aad0c Author: Mike Ruprecht <mike.ruprecht@collabora.co.uk> Date: Wed Jun 20 17:52:13 2012 -0500 rtmpsrc: Fix element losing data at the end of buffers rtmpsrc outputs truncated buffers because, when enough data is read to fill the buffer, the amount read that time (todo) is set to zero before it's added to the cumulative buffer size (bsize). The buffer is then truncated to bsize resulting in lost data. This patch adds todo to bsize before setting todo to zero. Fixes #678509