Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
419
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
e7f161f4
Commit
e7f161f4
authored
7 months ago
by
François Cartegnie
Committed by
Steve Lhomme
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
codec: videotoolbox: fix DPB output on IRAP
refs
#28700
parent
503c04fa
No related branches found
Branches containing commit
No related tags found
1 merge request
!5718
codec: videotoolbox: fix DPB output on IRAP
Pipeline
#490945
passed with stage
in 16 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/codec/videotoolbox/dpb.c
+3
-0
3 additions, 0 deletions
modules/codec/videotoolbox/dpb.c
modules/codec/videotoolbox/dpb_test.c
+62
-0
62 additions, 0 deletions
modules/codec/videotoolbox/dpb_test.c
with
65 additions
and
0 deletions
modules/codec/videotoolbox/dpb.c
+
3
−
0
View file @
e7f161f4
...
...
@@ -242,6 +242,9 @@ picture_t * DPBOutputAndRemoval(struct dpb_s *dpb, date_t *ptsdate,
dpb
->
pf_release
(
output
);
output
=
next
;
}
/* Output remaining C.5.2.2 2. al.2 */
output
=
EmptyDPB
(
dpb
,
ptsdate
);
}
else
/* Regular bump process */
{
...
...
This diff is collapsed.
Click to expand it.
modules/codec/videotoolbox/dpb_test.c
+
62
−
0
View file @
e7f161f4
...
...
@@ -267,6 +267,68 @@ static void CheckDPBWithFramesTest(void)
assert
(
dpb
.
i_size
==
0
);
/* IRAP, RASL, non-needed slots */
info
.
i_max_pics_buffering
=
10
;
/* let's trigger on needed output only */
info
.
i_foc
=
22
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
info
.
b_output_needed
=
false
;
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
20
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
info
.
b_output_needed
=
true
;
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
24
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
0
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
20
,
22
,
24
,
-
1
);
CheckDrain
(
&
dpb
,
&
pts
,
0
,
-
1
);
assert
(
dpb
.
i_size
==
0
);
/* IRAP, RASL, non-needed slots, NoRaslOutputFlag */
info
.
i_max_pics_buffering
=
10
;
/* let's trigger on needed output only */
info
.
i_foc
=
22
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
info
.
b_output_needed
=
false
;
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
20
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
info
.
b_output_needed
=
true
;
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
24
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
-
1
);
info
.
i_foc
=
0
;
info
.
i_poc
=
info
.
i_foc
&
~
1
;
info
.
b_flush
=
(
info
.
i_foc
==
0
);
info
.
b_no_rasl_output
=
true
;
info
.
b_keyframe
=
true
;
CheckOutput
(
&
dpb
,
&
pts
,
withpic
(
infocopy
(
&
info
),
info
.
i_foc
),
20
,
24
,
-
1
);
info
.
b_no_rasl_output
=
false
;
info
.
b_keyframe
=
false
;
CheckDrain
(
&
dpb
,
&
pts
,
0
,
-
1
);
assert
(
dpb
.
i_size
==
0
);
/* Max latency requirements */
info
.
i_max_pics_buffering
=
10
;
info
.
i_max_num_reorder
=
7
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment