Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
b123d078
Commit
b123d078
authored
Jul 28, 2019
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_metadata: Support overscan_appropriate_flag
Fixes #8041.
parent
f9b85036
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
bitstream_filters.texi
doc/bitstream_filters.texi
+4
-0
h264_metadata_bsf.c
libavcodec/h264_metadata_bsf.c
+11
-0
No files found.
doc/bitstream_filters.texi
View file @
b123d078
...
...
@@ -224,6 +224,10 @@ Insert or remove AUD NAL units in all access units of the stream.
@item sample_aspect_ratio
Set the sample aspect ratio of the stream in the VUI parameters.
@item overscan_appropriate_flag
Set whether the stream is suitable for display using overscan
or not (see H.264 section E.2.1).
@item video_format
@item video_full_range_flag
Set the video format in the stream (see H.264 section E.2.1 and
...
...
libavcodec/h264_metadata_bsf.c
View file @
b123d078
...
...
@@ -57,6 +57,8 @@ typedef struct H264MetadataContext {
AVRational
sample_aspect_ratio
;
int
overscan_appropriate_flag
;
int
video_format
;
int
video_full_range_flag
;
int
colour_primaries
;
...
...
@@ -129,6 +131,11 @@ static int h264_metadata_update_sps(AVBSFContext *bsf,
} \
} while (0)
if
(
ctx
->
overscan_appropriate_flag
>=
0
)
{
SET_VUI_FIELD
(
overscan_appropriate_flag
);
sps
->
vui
.
overscan_info_present_flag
=
1
;
}
if
(
ctx
->
video_format
>=
0
||
ctx
->
video_full_range_flag
>=
0
||
ctx
->
colour_primaries
>=
0
||
...
...
@@ -630,6 +637,10 @@ static const AVOption h264_metadata_options[] = {
OFFSET
(
sample_aspect_ratio
),
AV_OPT_TYPE_RATIONAL
,
{
.
dbl
=
0
.
0
},
0
,
65535
,
FLAGS
},
{
"overscan_appropriate_flag"
,
"Set VUI overscan appropriate flag"
,
OFFSET
(
overscan_appropriate_flag
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
1
,
FLAGS
},
{
"video_format"
,
"Set video format (table E-2)"
,
OFFSET
(
video_format
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
7
,
FLAGS
},
...
...
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