[FFmpeg-devel] [PATCH] examples/decoding_encoding: remove unused variable "size"

Clément Bœsch ubitux at gmail.com
Thu Apr 12 07:41:05 CEST 2012


On Thu, Apr 12, 2012 at 12:07:42AM +0200, Stefano Sabatini wrote:
> Remove unused variable size from video_encode_example() function.
> 
> Fix GCC warning:
> decoding_encoding.c:214:22: warning: unused variable ‘size’ [-Wunused-variable]
> ---
>  doc/examples/decoding_encoding.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
> index 4b87e2d..4b93b58 100644
> --- a/doc/examples/decoding_encoding.c
> +++ b/doc/examples/decoding_encoding.c
> @@ -211,7 +211,7 @@ static void video_encode_example(const char *filename, int codec_id)
>  {
>      AVCodec *codec;
>      AVCodecContext *c= NULL;
> -    int i, out_size, size, x, y, outbuf_size;
> +    int i, out_size, x, y, outbuf_size;
>      FILE *f;
>      AVFrame *picture;
>      uint8_t *outbuf;

sure OK

Note: am I the only one to require an extra LDFLAGS=-lm to link this
example?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120412/614fc88a/attachment.asc>


More information about the ffmpeg-devel mailing list