Commit c122ad24 authored by bcoudurier's avatar bcoudurier

return error if read failed

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17173 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1c5397ed
...@@ -30,7 +30,8 @@ int64_t ffm_read_write_index(int fd) ...@@ -30,7 +30,8 @@ int64_t ffm_read_write_index(int fd)
uint8_t buf[8]; uint8_t buf[8];
lseek(fd, 8, SEEK_SET); lseek(fd, 8, SEEK_SET);
read(fd, buf, 8); if (read(fd, buf, 8) != 8)
return AVERROR(EIO);
return AV_RB64(buf); return AV_RB64(buf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment