]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/subfile.c
avformat/subfile: allow to extract till EOF
[ffmpeg] / libavformat / subfile.c
index 497cf852116fd8dbdc9781377053752a65623ebb..b527f2bee17e1e6d8d4d416b0e6fbfa8037e949c 100644 (file)
@@ -72,6 +72,9 @@ static int subfile_open(URLContext *h, const char *filename, int flags,
     SubfileContext *c = h->priv_data;
     int ret;
 
+    if (!c->end)
+        c->end = INT64_MAX;
+
     if (c->end <= c->start) {
         av_log(h, AV_LOG_ERROR, "end before start\n");
         return AVERROR(EINVAL);