History

avdevice: migrate to AVFormatContext->url

Marton Balint committed 8 years ago

Commit 4bb04091 parent 25a2d2631 files · +59 −57Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 31 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+2−2
@@ -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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t