]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/bluray.c
libswscale: Remove unused deprecated functions, make used ones static
[ffmpeg] / libavformat / bluray.c
index 9282bf99565ba593ae6fe852f52f4c7890f04c18..635c4f1b87628eb3bf9a458b147b33a7da37d8e3 100644 (file)
@@ -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)