mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 21:00:00 +01:00
handle avi read error on memory mapped files
This commit is contained in:
@@ -3271,7 +3271,11 @@ long AVI_read_frame(avi_t *AVI, char *vidbuf, int *keyframe)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
n = mmap_read( AVI->mmap_region, AVI->video_index[ AVI->video_pos].pos, n, vidbuf );
|
if( mmap_read( AVI->mmap_region, AVI->video_index[ AVI->video_pos].pos, n, vidbuf ) != n )
|
||||||
|
{
|
||||||
|
AVI_errno = AVI_ERR_READ;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user