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
951951 cctx->raw_format = MKBETAG('v','2','1','0');
952952 }
953953
954− strcpy (fname, avctx->filename);
954+ av_strlcpy(fname, avctx->url, sizeof(fname));
955955 tmp=strchr (fname, '@');
956956 if (tmp != NULL) {
957957 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
966966 /* Get input device. */
967967 if (ctx->dl->QueryInterface(IID_IDeckLinkInput, (void **) &ctx->dli) != S_OK) {
968968 av_log(avctx, AV_LOG_ERROR, "Could not open input device from '%s'\n",
969− avctx->filename);
969+ avctx->url);
970970 ret = AVERROR(EIO);
971971 goto error;
972972 }

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