After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 163181 - [pngdec] reading is quite busted
[pngdec] reading is quite busted
Status: RESOLVED DUPLICATE of bug 162306
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-06 22:16 UTC by Gergely Nagy
Modified: 2005-08-29 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gergely Nagy 2005-01-06 22:16:03 UTC
I have a pretty large (~400kb) PNG file, and when I try gst-launch filesrc
location=test.png ! pngdec ! pngenc ! filesink location=out.png, I get lots of
warnings like this:

** (process:11950): WARNING **: reading past end of buffer

As far as I see, this happens because dec->buffer_in does not neccessarily
contain enough data, thus we trigger the reading past end of buffer thing.
Adding a blocksize=SIZE_OF_MY_FILE argument to filesrc works around the problem.

At the moment, pngdec expects the whole png data to arrive in one big buffer.
However, that is not always the case. I believe pngdec (and pngenc too.. I may
open a separate report about that) could be more intelligent and support input
that arrives in chunks.

Since I need this badly, I'll try to come up with a patch during the coming
days, time permitting.
Comment 1 David Schleef 2005-01-06 23:52:54 UTC

*** This bug has been marked as a duplicate of 162306 ***