Showing the changes to libavdevice/decklink_dec.cpp (1 of 31 files). Show all
Unified · Split
| @@ -951,7 +951,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 950 unmodified lines | |||
| 951 | cctx->raw_format = MKBETAG('v','2','1','0'); | 951 | cctx->raw_format = MKBETAG('v','2','1','0'); |
| 952 | } | 952 | } |
| 953 | 953 | ||
| 954 | strcpy (fname, avctx->filename); | 954 | av_strlcpy(fname, avctx->url, sizeof(fname)); |
| 955 | tmp=strchr (fname, '@'); | 955 | tmp=strchr (fname, '@'); |
| 956 | if (tmp != NULL) { | 956 | if (tmp != NULL) { |
| 957 | av_log(avctx, AV_LOG_WARNING, "The @mode syntax is deprecated and will be removed. Please use the -format_code option.\n"); | 957 | av_log(avctx, AV_LOG_WARNING, "The @mode syntax is deprecated and will be removed. Please use the -format_code option.\n"); |
| @@ -966,7 +966,7 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 8 unmodified lines | |||
| 966 | /* Get input device. */ | 966 | /* Get input device. */ |
| 967 | if (ctx->dl->QueryInterface(IID_IDeckLinkInput, (void **) &ctx->dli) != S_OK) { | 967 | if (ctx->dl->QueryInterface(IID_IDeckLinkInput, (void **) &ctx->dli) != S_OK) { |
| 968 | av_log(avctx, AV_LOG_ERROR, "Could not open input device from '%s'\n", | 968 | av_log(avctx, AV_LOG_ERROR, "Could not open input device from '%s'\n", |
| 969 | avctx->filename); | 969 | avctx->url); |
| 970 | ret = AVERROR(EIO); | 970 | ret = AVERROR(EIO); |
| 971 | goto error; | 971 | goto error; |
| 972 | } | 972 | } |