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
b7d480f4
Commit
b7d480f4
authored
Feb 09, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cuvid: update hw_frames_ctx reference after get_format call
parent
be74ba64
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
cuvid.c
libavcodec/cuvid.c
+13
-0
No files found.
libavcodec/cuvid.c
View file @
b7d480f4
...
@@ -143,6 +143,19 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
...
@@ -143,6 +143,19 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
avctx
->
pix_fmt
=
surface_fmt
;
avctx
->
pix_fmt
=
surface_fmt
;
// Update our hwframe ctx, as the get_format callback might have refreshed it!
if
(
avctx
->
hw_frames_ctx
)
{
av_buffer_unref
(
&
ctx
->
hwframe
);
ctx
->
hwframe
=
av_buffer_ref
(
avctx
->
hw_frames_ctx
);
if
(
!
ctx
->
hwframe
)
{
ctx
->
internal_error
=
AVERROR
(
ENOMEM
);
return
0
;
}
hwframe_ctx
=
(
AVHWFramesContext
*
)
ctx
->
hwframe
->
data
;
}
avctx
->
width
=
format
->
display_area
.
right
;
avctx
->
width
=
format
->
display_area
.
right
;
avctx
->
height
=
format
->
display_area
.
bottom
;
avctx
->
height
=
format
->
display_area
.
bottom
;
...
...
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