1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavf/bluray: translate a read of 0 to EOF

Yet another case of forgotten 0 =! EOF translation. The libbluray
documentation specifically mentions that a read of 0 is EOF.

Reported by Fyr on IRC.
This commit is contained in:
Jan Ekström 2018-05-06 17:15:52 +03:00
parent 053ee996a0
commit b995ec078f

View File

@ -198,7 +198,7 @@ static int bluray_read(URLContext *h, unsigned char *buf, int size)
len = bd_read(bd->bd, buf, size); len = bd_read(bd->bd, buf, size);
return len; return len == 0 ? AVERROR_EOF : len;
} }
static int64_t bluray_seek(URLContext *h, int64_t pos, int whence) static int64_t bluray_seek(URLContext *h, int64_t pos, int whence)