pngdec: change parse logic
authorVineeth T M <vineeth.tm@samsung.com>
Tue, 4 Nov 2014 02:48:41 +0000 (08:18 +0530)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 4 Nov 2014 10:55:32 +0000 (10:55 +0000)
commit63e0b292910d51d5e948d25a8aa13b6e73a12278
tree83e232d352f12aa889f099b79c7f615cd91f7494
parent26d682d23ff3ede3862d2d3c1072e2e87ec380c8
pngdec: change parse logic

Right now in parse logic the signature is checked every time the parse function
is called, and the whole data is the scanned each and every time, even though the
data is scanned in the previous instance. Changing the logic such that, we skip
the bytes which are already scanned in the previous instances of parse. This
helps in avoiding multiple scan of already scanned data/signature.

https://bugzilla.gnome.org/show_bug.cgi?id=737708
ext/libpng/gstpngdec.c
ext/libpng/gstpngdec.h