If the decoding fails, reset the buffer first.
If the decoding fails, reset the buffer first.

denisfalqueto/PDFrenderer,Pixplicity/PDFrenderer,oswetto/PDFrenderer,Bennyz1/PDFrenderer,katjas/PDFrenderer