# HG changeset patch # User reimar # Date 1173020363 0 # Node ID 0cf22436ef756b9784b533b92b18db931dac45ce # Parent 1c12f4697cecac3c0a7f9f2f40a6b4f79044f25f Already frameno == num_frames means we reached EOF. diff -r 1c12f4697cec -r 0cf22436ef75 libmpdemux/demux_avs.c --- a/libmpdemux/demux_avs.c Sun Mar 04 14:53:26 2007 +0000 +++ b/libmpdemux/demux_avs.c Sun Mar 04 14:59:23 2007 +0000 @@ -172,7 +172,7 @@ 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)