lavd/avfoundation: Remove useless index increment.
authorThilo Borgmann <thilo.borgmann@mail.de>
Sun, 30 Jun 2019 11:56:08 +0000 (13:56 +0200)
committerThilo Borgmann <thilo.borgmann@mail.de>
Mon, 8 Jul 2019 18:02:41 +0000 (20:02 +0200)
libavdevice/avfoundation.m

index 98552ac..88fe050 100644 (file)
@@ -690,7 +690,6 @@ static int avf_read_header(AVFormatContext *s)
             const char *name = [[device localizedName] UTF8String];
             index            = [devices indexOfObject:device];
             av_log(ctx, AV_LOG_INFO, "[%d] %s\n", index, name);
-            index++;
         }
 #if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
         if (num_screens > 0) {