Browse Source

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.

(cherry picked from commit b995ec078f)
tags/n4.0.1
Jan Ekström 7 years ago
parent
commit
8fde71acd9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/bluray.c

+ 1
- 1
libavformat/bluray.c View 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)


Loading…
Cancel
Save