]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/concat.c
avio: deprecate url_fget_max_packet_size
[ffmpeg] / libavformat / concat.c
index 3d25788920d49e134615eb269f08c5316ab6b4fb..365907912a52220907536b00212fc76face5ae3e 100644 (file)
@@ -160,9 +160,9 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence)
     switch (whence) {
     case SEEK_END:
         for (i = data->length - 1;
-             i && pos < -nodes[i-1].size;
+             i && pos < -nodes[i].size;
              i--)
-            pos += nodes[i-1].size;
+            pos += nodes[i].size;
         break;
     case SEEK_CUR:
         /* get the absolute position */
@@ -188,7 +188,7 @@ static int64_t concat_seek(URLContext *h, int64_t pos, int whence)
     return result;
 }
 
-URLProtocol concat_protocol = {
+URLProtocol ff_concat_protocol = {
     "concat",
     concat_open,
     concat_read,