[FFmpeg-devel] [PATCH] pngdec: return correct error code from decode_frame_common

Michael Niedermayer michaelni at gmx.at
Sun May 3 20:37:10 CEST 2015


On Sun, May 03, 2015 at 05:50:26PM +0200, Andreas Cadhalpun wrote:
> During the loop ret can get changed. Since it is not set on all failure
> paths, decode_frame_common can return 0 even though an error occurred.
> 
> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/pngdec.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150503/5d0c5afa/attachment.asc>


More information about the ffmpeg-devel mailing list