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
e5db2e96
Commit
e5db2e96
authored
Nov 30, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/avc: add missing return error value
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
99d78e4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
avc.c
libavformat/avc.c
+3
-1
No files found.
libavformat/avc.c
View file @
e5db2e96
...
...
@@ -198,8 +198,10 @@ int ff_isom_write_avcc(AVIOContext *pb, const uint8_t *data, int len)
if
(
sps
[
3
]
!=
66
&&
sps
[
3
]
!=
77
&&
sps
[
3
]
!=
88
)
{
H264SequenceParameterSet
*
seq
=
ff_avc_decode_sps
(
sps
+
3
,
sps_size
-
3
);
if
(
!
seq
)
if
(
!
seq
)
{
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
avio_w8
(
pb
,
0xfc
|
seq
->
chroma_format_idc
);
/* 6 bits reserved (111111) + chroma_format_idc */
avio_w8
(
pb
,
0xf8
|
(
seq
->
bit_depth_luma
-
8
));
/* 5 bits reserved (11111) + bit_depth_luma_minus8 */
avio_w8
(
pb
,
0xf8
|
(
seq
->
bit_depth_chroma
-
8
));
/* 5 bits reserved (11111) + bit_depth_chroma_minus8 */
...
...
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