[FFmpeg-devel] [PATCH] remove a warning from nsvdec.c

Måns Rullgård mans
Sun Jan 27 19:43:47 CET 2008


Diego Biurrun <diego at biurrun.de> writes:

> Here is a small patch to replace a #warning with a /* FIXME */ comment.
> Should be just as good without producing a warning.
>
> Diego
>
> Index: libavformat/nsvdec.c
> ===================================================================
> --- libavformat/nsvdec.c	(revision 11635)
> +++ libavformat/nsvdec.c	(working copy)
> @@ -358,7 +358,7 @@
>          if((unsigned)table_entries >= UINT_MAX / sizeof(uint32_t))
>              return -1;
>          nsv->nsvf_index_data = av_malloc(table_entries * sizeof(uint32_t));
> -#warning "FIXME: Byteswap buffer as needed"
> +        /* FIXME: Byteswap buffer as needed. */
>          get_buffer(pb, (unsigned char *)nsv->nsvf_index_data, table_entries * sizeof(uint32_t));
>      }

You have a Mac, why don't you fix it properly?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list