Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f434ddf4
Commit
f434ddf4
authored
Jun 16, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv_hw: Free device on initialisation failure
Fixes CID 1412852. (cherry picked from commit
c2b0bea4
)
parent
70808859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ffmpeg_hw.c
ffmpeg_hw.c
+2
-1
No files found.
ffmpeg_hw.c
View file @
f434ddf4
...
@@ -77,7 +77,7 @@ int hw_device_init_from_string(const char *arg, HWDevice **dev_out)
...
@@ -77,7 +77,7 @@ int hw_device_init_from_string(const char *arg, HWDevice **dev_out)
char
*
type_name
=
NULL
,
*
name
=
NULL
,
*
device
=
NULL
;
char
*
type_name
=
NULL
,
*
name
=
NULL
,
*
device
=
NULL
;
enum
AVHWDeviceType
type
;
enum
AVHWDeviceType
type
;
HWDevice
*
dev
,
*
src
;
HWDevice
*
dev
,
*
src
;
AVBufferRef
*
device_ref
;
AVBufferRef
*
device_ref
=
NULL
;
int
err
;
int
err
;
const
char
*
errmsg
,
*
p
,
*
q
;
const
char
*
errmsg
,
*
p
,
*
q
;
size_t
k
;
size_t
k
;
...
@@ -210,6 +210,7 @@ invalid:
...
@@ -210,6 +210,7 @@ invalid:
fail:
fail:
av_log
(
NULL
,
AV_LOG_ERROR
,
av_log
(
NULL
,
AV_LOG_ERROR
,
"Device creation failed: %d.
\n
"
,
err
);
"Device creation failed: %d.
\n
"
,
err
);
av_buffer_unref
(
&
device_ref
);
goto
done
;
goto
done
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment