mirror of https://github.com/mpv-player/mpv
Already frameno == num_frames means we reached EOF.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22449 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8849f44f77
commit
723fc2a290
|
@ -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;
|
sh_video_t *sh_video = demuxer->video->sh;
|
||||||
char *dst;
|
char *dst;
|
||||||
int w, h;
|
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);
|
curr_frame = AVS->avs_get_frame(AVS->clip, AVS->frameno);
|
||||||
if (!curr_frame)
|
if (!curr_frame)
|
||||||
|
|
Loading…
Reference in New Issue