mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
lavd/avfoundation: Fix mixed declaration and code
This commit is contained in:
parent
079de49912
commit
a473e11e32
@ -313,9 +313,10 @@ static void destroy_context(AVFContext* ctx)
|
||||
static int parse_device_name(AVFormatContext *s)
|
||||
{
|
||||
AVFContext *ctx = (AVFContext*)s->priv_data;
|
||||
ctx->url = av_strdup(s->url);
|
||||
char *save;
|
||||
|
||||
ctx->url = av_strdup(s->url);
|
||||
|
||||
if (!ctx->url)
|
||||
return AVERROR(ENOMEM);
|
||||
if (ctx->url[0] != ':') {
|
||||
|
Loading…
Reference in New Issue
Block a user