Mercurial > mplayer.hg
changeset 2439:022a7e7fec2d
while_encoding.avi (ffmpeg) fix (ignoring movi_ check if end<=start)
author | arpi |
---|---|
date | Wed, 24 Oct 2001 00:50:54 +0000 |
parents | 561a7b13220a |
children | 3b792a1d0fc2 |
files | libmpdemux/demux_avi.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c Wed Oct 24 00:25:52 2001 +0000 +++ b/libmpdemux/demux_avi.c Wed Oct 24 00:50:54 2001 +0000 @@ -192,7 +192,7 @@ } pos=idx->dwChunkOffset+priv->idx_offset; - if(pos<demux->movi_start || pos>=demux->movi_end){ + if((pos<demux->movi_start || pos>=demux->movi_end) && (demux->movi_end>demux->movi_start)){ mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! idx=0x%X \n",pos); continue; } @@ -224,7 +224,7 @@ if(idx->dwFlags&AVIIF_KEYFRAME) flags=1; } else { demux->filepos=stream_tell(demux->stream); - if(demux->filepos>=demux->movi_end){ + if(demux->filepos>=demux->movi_end && demux->movi_end>demux->movi_start){ demux->stream->eof=1; return 0; } @@ -284,7 +284,7 @@ } pos=idx->dwChunkOffset+priv->idx_offset; - if(pos<demux->movi_start || pos>=demux->movi_end){ + if((pos<demux->movi_start || pos>=demux->movi_end) && (demux->movi_end>demux->movi_start)){ mp_msg(MSGT_DEMUX,MSGL_V,"ChunkOffset out of range! current=0x%X idx=0x%X \n",demux->filepos,pos); continue; } @@ -347,7 +347,7 @@ do{ demux->filepos=stream_tell(demux->stream); - if(demux->filepos>=demux->movi_end){ + if(demux->filepos>=demux->movi_end && (demux->movi_end>demux->movi_start)){ demux->stream->eof=1; return 0; }