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
932db250
Commit
932db250
authored
Jun 21, 2011
by
Jason Garrett-Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H.264: fix 4:4:4 cropping warning
parent
85a88f9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
h264_ps.c
libavcodec/h264_ps.c
+2
-1
No files found.
libavcodec/h264_ps.c
View file @
932db250
...
...
@@ -396,6 +396,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
#endif
sps
->
crop
=
get_bits1
(
&
s
->
gb
);
if
(
sps
->
crop
){
int
crop_limit
=
sps
->
chroma_format_idc
==
3
?
16
:
8
;
sps
->
crop_left
=
get_ue_golomb
(
&
s
->
gb
);
sps
->
crop_right
=
get_ue_golomb
(
&
s
->
gb
);
sps
->
crop_top
=
get_ue_golomb
(
&
s
->
gb
);
...
...
@@ -403,7 +404,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
if
(
sps
->
crop_left
||
sps
->
crop_top
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"insane cropping not completely supported, this could look slightly wrong ...
\n
"
);
}
if
(
sps
->
crop_right
>=
(
8
<<
CHROMA444
)
||
sps
->
crop_bottom
>=
(
8
<<
CHROMA444
)
){
if
(
sps
->
crop_right
>=
crop_limit
||
sps
->
crop_bottom
>=
crop_limit
){
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"brainfart cropping not supported, this could look slightly wrong ...
\n
"
);
}
}
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