]> git.sesse.net Git - ffmpeg/commitdiff
lavf/allformats: remove left-over index decrement
authorJosh de Kock <josh@itanimul.li>
Sun, 1 Apr 2018 02:07:11 +0000 (03:07 +0100)
committerJosh de Kock <josh@itanimul.li>
Mon, 2 Apr 2018 01:18:21 +0000 (02:18 +0100)
Signed-off-by: Josh de Kock <josh@itanimul.li>
libavformat/allformats.c

index 7ade03fc5d416bdba9c2289e89e05fba725c87ca..d8d733735a33be802fd5bf77124f660d2cd624ea 100644 (file)
@@ -494,7 +494,7 @@ const AVOutputFormat *av_muxer_iterate(void **opaque)
     uintptr_t i = (uintptr_t)*opaque;
     const AVOutputFormat *f = NULL;
 
-    if (i < size - 1) {
+    if (i < size) {
         f = muxer_list[i];
     } else if (indev_list) {
         f = outdev_list[i - size];