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
768eb918
Commit
768eb918
authored
Aug 14, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cbs_h2645: Return error if writing fails
parent
f70f71d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cbs_h2645.c
libavcodec/cbs_h2645.c
+5
-0
No files found.
libavcodec/cbs_h2645.c
View file @
768eb918
...
@@ -1244,6 +1244,11 @@ static int cbs_h2645_write_nal_unit(CodedBitstreamContext *ctx,
...
@@ -1244,6 +1244,11 @@ static int cbs_h2645_write_nal_unit(CodedBitstreamContext *ctx,
// Overflow but we didn't notice.
// Overflow but we didn't notice.
av_assert0
(
put_bits_count
(
&
pbc
)
<=
8
*
priv
->
write_buffer_size
);
av_assert0
(
put_bits_count
(
&
pbc
)
<=
8
*
priv
->
write_buffer_size
);
if
(
err
<
0
)
{
// Write failed for some other reason.
return
err
;
}
if
(
put_bits_count
(
&
pbc
)
%
8
)
if
(
put_bits_count
(
&
pbc
)
%
8
)
unit
->
data_bit_padding
=
8
-
put_bits_count
(
&
pbc
)
%
8
;
unit
->
data_bit_padding
=
8
-
put_bits_count
(
&
pbc
)
%
8
;
else
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