diff options
Diffstat (limited to 'libavdevice/iec61883.c')
-rw-r--r-- | libavdevice/iec61883.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c index 721dca38ee..7d4d37847c 100644 --- a/libavdevice/iec61883.c +++ b/libavdevice/iec61883.c @@ -259,14 +259,14 @@ static int iec61883_read_header(AVFormatContext *context) goto fail; } - inport = strtol(context->filename, &endptr, 10); - if (endptr != context->filename && *endptr == '\0') { + inport = strtol(context->url, &endptr, 10); + if (endptr != context->url && *endptr == '\0') { av_log(context, AV_LOG_INFO, "Selecting IEEE1394 port: %d\n", inport); j = inport; nb_ports = inport + 1; - } else if (strcmp(context->filename, "auto")) { + } else if (strcmp(context->url, "auto")) { av_log(context, AV_LOG_ERROR, "Invalid input \"%s\", you should specify " - "\"auto\" for auto-detection, or the port number.\n", context->filename); + "\"auto\" for auto-detection, or the port number.\n", context->url); goto fail; } |