Skip to content
Permalink
Browse files

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.
  • Loading branch information
jeeb committed May 6, 2018
1 parent 053ee99 commit cc8e71f728ab037357baf0439c8a899ddcdfd5ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 libavformat/bluray.c
@@ -198,7 +198,7 @@ static int bluray_read(URLContext *h, unsigned char *buf, int 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)

0 comments on commit cc8e71f

Please sign in to comment.