[FFmpeg-devel] [PATCH 4/4] fft-test: Remove possibility of returning restricted exit code

Michael Niedermayer michaelni at gmx.at
Wed Oct 23 00:14:35 CEST 2013


On Tue, Oct 22, 2013 at 09:37:56PM +0100, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavcodec/fft-test.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/fft-test.c b/libavcodec/fft-test.c
> index eee8cb2..874bf4c 100644
> --- a/libavcodec/fft-test.c
> +++ b/libavcodec/fft-test.c
> @@ -499,5 +499,8 @@ int main(int argc, char **argv)
>      av_free(tab_ref);
>      av_free(exptab);
>  
> -    return err;
> +    if (err)

> +        printf("Error: %d.\n");

the %d mismatches too


> +
> +    return !!err;
>  }
> -- 
> 1.8.4.rc3
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131023/f5a91214/attachment.asc>


More information about the ffmpeg-devel mailing list