[MPlayer-cvslog] r34860 - in trunk: libmpcodecs/vd_ffmpeg.c libmpcodecs/vd_mpegpes.c libmpcodecs/vd

Ingo Brückl ib at wupperonline.de
Sun Apr 15 20:03:20 CEST 2012


> Author: reimar
> Date: Sun Apr 15 17:01:09 2012
> New Revision: 34860

mplayer.c: In function 'update_video':
mplayer.c:2429: warning: 'flush' may be used uninitialized in this function

Did you notice this message?

> Modified: trunk/mplayer.c
> ==============================================================================
> +++ trunk/mplayer.c     Sun Apr 15 17:01:09 2012        (r34860)
> @@ -2425,6 +2426,7 @@ static double update_video(int *blit_fra
>          int full_frame;
>
>          do {
> +            int flush;
>              current_module = "video_read_frame";
>              frame_time     = sh_video->next_frame_time;
>              in_size = video_read_frame(sh_video,
> &sh_video->next_frame_time,
> @@ -2441,6 +2443,11 @@ static double update_video(int *blit_fra
>                  mpctx->stream->eof = 0;
>              } else
>  #endif
> +            flush = in_size < 0 && mpctx->d_video->eof;
> +            if (flush) {
> +                start = NULL;
> +                in_size = 0;
> +            }
>              if (in_size < 0)
>                  return -1;
>              if (in_size > max_framesize)

I don't know nothing about what this is all about, but the "else" in the
CONFIG_DVDNAV block grabs the "flush = in_size < 0 && mpctx->d_video->eof;".

Ingo


More information about the MPlayer-cvslog mailing list