From 723fc2a2908a79abc5fd1b74bf5f26bbf0c09f09 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 4 Mar 2007 14:59:23 +0000 Subject: Already frameno == num_frames means we reached EOF. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22449 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_avs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/demux_avs.c b/libmpdemux/demux_avs.c index c73082b9b3..7912887890 100644 --- a/libmpdemux/demux_avs.c +++ b/libmpdemux/demux_avs.c @@ -172,7 +172,7 @@ static int demux_avs_fill_buffer(demuxer_t *demuxer, demux_stream_t *ds) sh_video_t *sh_video = demuxer->video->sh; char *dst; int w, h; - if (AVS->video_info->num_frames < AVS->frameno) return 0; // EOF + if (AVS->video_info->num_frames <= AVS->frameno) return 0; // EOF curr_frame = AVS->avs_get_frame(AVS->clip, AVS->frameno); if (!curr_frame) -- cgit v1.2.3