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
4405ff2c
Commit
4405ff2c
authored
Mar 13, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/hevc_ps: Fix default display window offsets for yuv422 and yuv444.
parent
ed5d295a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
hevc_ps.c
libavcodec/hevc_ps.c
+6
-5
No files found.
libavcodec/hevc_ps.c
View file @
4405ff2c
...
@@ -596,11 +596,12 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx,
...
@@ -596,11 +596,12 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx,
memcpy
(
&
backup
,
gb
,
sizeof
(
backup
));
memcpy
(
&
backup
,
gb
,
sizeof
(
backup
));
if
(
vui
->
default_display_window_flag
)
{
if
(
vui
->
default_display_window_flag
)
{
//TODO: * 2 is only valid for 420
int
vert_mult
=
1
+
(
sps
->
chroma_format_idc
<
2
);
vui
->
def_disp_win
.
left_offset
=
get_ue_golomb_long
(
gb
)
*
2
;
int
horiz_mult
=
1
+
(
sps
->
chroma_format_idc
<
3
);
vui
->
def_disp_win
.
right_offset
=
get_ue_golomb_long
(
gb
)
*
2
;
vui
->
def_disp_win
.
left_offset
=
get_ue_golomb_long
(
gb
)
*
horiz_mult
;
vui
->
def_disp_win
.
top_offset
=
get_ue_golomb_long
(
gb
)
*
2
;
vui
->
def_disp_win
.
right_offset
=
get_ue_golomb_long
(
gb
)
*
horiz_mult
;
vui
->
def_disp_win
.
bottom_offset
=
get_ue_golomb_long
(
gb
)
*
2
;
vui
->
def_disp_win
.
top_offset
=
get_ue_golomb_long
(
gb
)
*
vert_mult
;
vui
->
def_disp_win
.
bottom_offset
=
get_ue_golomb_long
(
gb
)
*
vert_mult
;
if
(
apply_defdispwin
&&
if
(
apply_defdispwin
&&
avctx
->
flags2
&
AV_CODEC_FLAG2_IGNORE_CROP
)
{
avctx
->
flags2
&
AV_CODEC_FLAG2_IGNORE_CROP
)
{
...
...
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