[gstreamer-bugs] [Bug 163181] New: [pngdec] reading is quite busted

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Thu Jan 6 14:16:03 PST 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=163181
 GStreamer | gst-plugins | Ver: HEAD CVS

           Summary: [pngdec] reading is quite busted
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: algernon at bonehunter.rulez.org
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


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.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list