[FFmpeg-devel] [PATCH] ffmpeg: remove unused variable in ffmpeg_exit()

Måns Rullgård mans
Sat Mar 12 12:50:29 CET 2011


Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:

> Fix the warning:
> ffmpeg.c: In function ?ffmpeg_exit?:
> ffmpeg.c:509: warning: unused variable ?j?
> ---
>  ffmpeg.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 875d594..24e8a93 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -506,7 +506,6 @@ static int ffmpeg_exit(int ret)
>      /* close files */
>      for(i=0;i<nb_output_files;i++) {
>          AVFormatContext *s = output_files[i];
> -        int j;
>          if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
>              avio_close(s->pb);
>          avformat_free_context(s);
> -- 
> 1.7.2.3

OK, queued.

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



More information about the ffmpeg-devel mailing list