diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/aviheader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index b9a29b2924..9be2f8f3d8 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -150,7 +150,10 @@ while(1){ } break; } - case ckidAVINEWINDEX: if(index_mode){ + case ckidAVINEWINDEX: + if(demuxer->movi_end>stream_tell(demuxer->stream)) + demuxer->movi_end=stream_tell(demuxer->stream); // fixup movi-end + if(index_mode){ int i; priv->idx_size=size2>>4; mp_msg(MSGT_HEADER,MSGL_V,"Reading INDEX block, %d chunks for %ld frames\n", |