pcx: Consume the whole packet if giving up due to missing palette
authorMartin Storsjö <martin@martin.st>
Sat, 28 Sep 2013 21:38:50 +0000 (00:38 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 4 Oct 2013 01:52:10 +0000 (03:52 +0200)
commit812955a12b190012c134be33a93f27308953eb2f
tree74b1d0e1f974e562f19a09acd5b9f61e4f892dd7
parenta63e83cd4b43c3dcef38f7fefe41c002a263af0f
pcx: Consume the whole packet if giving up due to missing palette

Previously, we returned 0, meaning successful decoding but 0
bytes consumed, leading to an infinite loop.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 9fb0de86b49e9fb0709a8ad1e1875e35da841887)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/pcx.c