On Sat, Jan 28, 2012 at 06:34:12PM +0530, Aneesh Dogra wrote:
> 
> --- a/libavcodec/sunrast.c
> +++ b/libavcodec/sunrast.c
> @@ -23,6 +23,8 @@
>  
> +#define RAS_MAGIC 0x59a66a95
> +
> @@ -74,7 +76,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void 
> *data,
>  
> -    if (AV_RB32(buf) != 0x59a66a95) {
> +    if (AV_RB32(buf) != RAS_MAGIC) {

This is more of a plain define than a macro, so I would suggest the
following log message:

  sunrast: Replace RASTFILE magic number by #define.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to