You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavd/avfoundation: Fix mixed declaration and code
This commit is contained in:
@@ -313,9 +313,10 @@ static void destroy_context(AVFContext* ctx)
|
|||||||
static int parse_device_name(AVFormatContext *s)
|
static int parse_device_name(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
AVFContext *ctx = (AVFContext*)s->priv_data;
|
AVFContext *ctx = (AVFContext*)s->priv_data;
|
||||||
ctx->url = av_strdup(s->url);
|
|
||||||
char *save;
|
char *save;
|
||||||
|
|
||||||
|
ctx->url = av_strdup(s->url);
|
||||||
|
|
||||||
if (!ctx->url)
|
if (!ctx->url)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
if (ctx->url[0] != ':') {
|
if (ctx->url[0] != ':') {
|
||||||
|
Reference in New Issue
Block a user