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
67ddf216
Commit
67ddf216
authored
Oct 06, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vdpau: do not dereference hwctx before checking it for NULL
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4d8356b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vdpau.c
libavcodec/vdpau.c
+1
-1
No files found.
libavcodec/vdpau.c
View file @
67ddf216
...
@@ -89,7 +89,6 @@ int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
...
@@ -89,7 +89,6 @@ int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
vdctx
->
width
=
UINT32_MAX
;
vdctx
->
width
=
UINT32_MAX
;
vdctx
->
height
=
UINT32_MAX
;
vdctx
->
height
=
UINT32_MAX
;
hwctx
->
reset
=
0
;
if
(
!
hwctx
)
{
if
(
!
hwctx
)
{
vdctx
->
device
=
VDP_INVALID_HANDLE
;
vdctx
->
device
=
VDP_INVALID_HANDLE
;
...
@@ -103,6 +102,7 @@ int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
...
@@ -103,6 +102,7 @@ int ff_vdpau_common_init(AVCodecContext *avctx, VdpDecoderProfile profile,
vdctx
->
device
=
VDP_INVALID_HANDLE
;
vdctx
->
device
=
VDP_INVALID_HANDLE
;
return
0
;
/* Decoder created by user */
return
0
;
/* Decoder created by user */
}
}
hwctx
->
reset
=
0
;
vdctx
->
device
=
hwctx
->
device
;
vdctx
->
device
=
hwctx
->
device
;
vdctx
->
get_proc_address
=
hwctx
->
get_proc_address
;
vdctx
->
get_proc_address
=
hwctx
->
get_proc_address
;
...
...
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