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
d4cd8e7f
Commit
d4cd8e7f
authored
Jun 02, 2016
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_encode_h26[45]: Reject bitrate targets higher than 2^31
parent
056a4ae7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
vaapi_encode_h264.c
libavcodec/vaapi_encode_h264.c
+6
-0
vaapi_encode_h265.c
libavcodec/vaapi_encode_h265.c
+6
-0
No files found.
libavcodec/vaapi_encode_h264.c
View file @
d4cd8e7f
...
...
@@ -731,6 +731,12 @@ static av_cold int vaapi_encode_h264_init_constant_bitrate(AVCodecContext *avctx
int
hrd_buffer_size
;
int
hrd_initial_buffer_fullness
;
if
(
avctx
->
bit_rate
>
INT32_MAX
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Target bitrate of 2^31 bps or "
"higher is not supported.
\n
"
);
return
AVERROR
(
EINVAL
);
}
if
(
avctx
->
rc_buffer_size
)
hrd_buffer_size
=
avctx
->
rc_buffer_size
;
else
...
...
libavcodec/vaapi_encode_h265.c
View file @
d4cd8e7f
...
...
@@ -1158,6 +1158,12 @@ static av_cold int vaapi_encode_h265_init_constant_bitrate(AVCodecContext *avctx
int
hrd_buffer_size
;
int
hrd_initial_buffer_fullness
;
if
(
avctx
->
bit_rate
>
INT32_MAX
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Target bitrate of 2^31 bps or "
"higher is not supported.
\n
"
);
return
AVERROR
(
EINVAL
);
}
if
(
avctx
->
rc_buffer_size
)
hrd_buffer_size
=
avctx
->
rc_buffer_size
;
else
...
...
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