summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-05-06 17:15:52 +0300
committerJan Ekström <jeebjp@gmail.com>2018-05-06 18:51:33 +0300
commitb995ec078f42bac95eda18fbd1b4387477b55d0d (patch)
treee79e62a03fd958352e16441460c9d19864845306 /libavformat
parent053ee996a03b8744af6e12d39e3087efae218b64 (diff)
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.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/bluray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/bluray.c b/libavformat/bluray.c
index 9282bf9956..635c4f1b87 100644
--- a/libavformat/bluray.c
+++ b/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)