Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
0faf2ca9
Commit
0faf2ca9
authored
Mar 19, 2024
by
Tong Wu
Committed by
Haihao Xiang
Apr 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/d3d12va_decode: remove extra spaces for declaration
Signed-off-by:
Tong Wu
<
tong1.wu@intel.com
>
parent
50458b7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
d3d12va_decode.c
libavcodec/d3d12va_decode.c
+2
-2
No files found.
libavcodec/d3d12va_decode.c
View file @
0faf2ca9
...
...
@@ -270,7 +270,7 @@ fail:
int
ff_d3d12va_common_frame_params
(
AVCodecContext
*
avctx
,
AVBufferRef
*
hw_frames_ctx
)
{
AVHWFramesContext
*
frames_ctx
=
(
AVHWFramesContext
*
)
hw_frames_ctx
->
data
;
AVHWFramesContext
*
frames_ctx
=
(
AVHWFramesContext
*
)
hw_frames_ctx
->
data
;
frames_ctx
->
format
=
AV_PIX_FMT_D3D12
;
frames_ctx
->
sw_format
=
avctx
->
sw_pix_fmt
==
AV_PIX_FMT_YUV420P10
?
AV_PIX_FMT_P010
:
AV_PIX_FMT_NV12
;
...
...
@@ -411,7 +411,7 @@ int ff_d3d12va_decode_uninit(AVCodecContext *avctx)
static
inline
int
d3d12va_update_reference_frames_state
(
AVCodecContext
*
avctx
,
D3D12_RESOURCE_BARRIER
*
barriers
,
ID3D12Resource
*
current_resource
,
int
state_before
,
int
state_end
)
{
D3D12VADecodeContext
*
ctx
=
D3D12VA_DECODE_CONTEXT
(
avctx
);
D3D12VADecodeContext
*
ctx
=
D3D12VA_DECODE_CONTEXT
(
avctx
);
int
num_barrier
=
0
;
for
(
int
i
=
0
;
i
<
ctx
->
max_num_ref
;
i
++
)
{
...
...
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