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
da917fcf
Commit
da917fcf
authored
Jan 30, 2016
by
Hendrik Leppkes
Committed by
Anton Khirnov
Jul 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv_dxva2: add a profile check for hevc
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
1ecb63cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
avconv_dxva2.c
avconv_dxva2.c
+6
-0
No files found.
avconv_dxva2.c
View file @
da917fcf
...
@@ -422,6 +422,12 @@ int dxva2_init(AVCodecContext *s)
...
@@ -422,6 +422,12 @@ int dxva2_init(AVCodecContext *s)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
if
(
s
->
codec_id
==
AV_CODEC_ID_HEVC
&&
s
->
profile
!=
FF_PROFILE_HEVC_MAIN
&&
s
->
profile
!=
FF_PROFILE_HEVC_MAIN_10
)
{
av_log
(
NULL
,
loglevel
,
"Unsupported HEVC profile for DXVA2 HWAccel: %d
\n
"
,
s
->
profile
);
return
AVERROR
(
EINVAL
);
}
av_buffer_unref
(
&
ctx
->
hw_frames_ctx
);
av_buffer_unref
(
&
ctx
->
hw_frames_ctx
);
ret
=
dxva2_create_decoder
(
s
);
ret
=
dxva2_create_decoder
(
s
);
...
...
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