[FFmpeg-devel] [PATCH 17/19] loco: take decode overflow into account.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jul 29 17:39:30 CEST 2012


On Sun, Jul 29, 2012 at 03:57:35PM +0200, Nicolas George wrote:
> +#define ADVANCE_BY_DECODED do { \
> +    if (decoded < 0) goto stop; \
> +    buf += decoded; buf_size -= decoded; \
> +} while(0);
> +        ADVANCE_BY_DECODED;

This will end up with ';;' in the code after preprocessing.
Some compilers will fail on that.


More information about the ffmpeg-devel mailing list