Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7a879adc
Commit
7a879adc
authored
Oct 19, 2005
by
Marian Durkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1088->1080 fix for broken HDTV encoders; could be disabled via --no-hdtv-fix
parent
818d87e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
src/input/decoder.c
src/input/decoder.c
+4
-3
src/libvlc.h
src/libvlc.h
+8
-0
No files found.
src/input/decoder.c
View file @
7a879adc
...
@@ -926,10 +926,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
...
@@ -926,10 +926,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
p_dec
->
fmt_out
.
video
.
i_height
;
p_dec
->
fmt_out
.
video
.
i_height
;
}
}
if
(
p_dec
->
fmt_out
.
video
.
i_visible_height
==
1088
)
if
(
p_dec
->
fmt_out
.
video
.
i_visible_height
==
1088
&&
var_CreateGetBool
(
p_dec
,
"hdtv-fix"
)
)
{
{
/* p_dec->fmt_out.video.i_visible_height = 1080; */
p_dec
->
fmt_out
.
video
.
i_visible_height
=
1080
;
msg_Warn
(
p_dec
,
"
B
roken HDTV stream (display_height=1088)"
);
msg_Warn
(
p_dec
,
"
Fixing b
roken HDTV stream (display_height=1088)"
);
}
}
if
(
!
p_dec
->
fmt_out
.
video
.
i_sar_num
||
if
(
!
p_dec
->
fmt_out
.
video
.
i_sar_num
||
...
...
src/libvlc.h
View file @
7a879adc
...
@@ -288,6 +288,13 @@ static char *ppsz_align_descriptions[] =
...
@@ -288,6 +288,13 @@ static char *ppsz_align_descriptions[] =
"aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
"aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
"squareness.")
"squareness.")
#define HDTV_FIX_TEXT N_("Fix HDTV height")
#define HDTV_FIX_LONGTEXT N_( \
"This option allows proper handling of HDTV-1080 video format " \
"even if broken encoder incorrectly set height to 1088 lines. " \
"Disable this option only if your video has non-standard format " \
"requiring all 1088 lines.")
#define MASPECT_RATIO_TEXT N_("Monitor aspect ratio")
#define MASPECT_RATIO_TEXT N_("Monitor aspect ratio")
#define MASPECT_RATIO_LONGTEXT N_( \
#define MASPECT_RATIO_LONGTEXT N_( \
"This will force the monitor aspect ratio. Most monitors have a 4:3." \
"This will force the monitor aspect ratio. Most monitors have a 4:3." \
...
@@ -1017,6 +1024,7 @@ vlc_module_begin();
...
@@ -1017,6 +1024,7 @@ vlc_module_begin();
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_string
(
"monitor-aspect-ratio"
,
"4:3"
,
NULL
,
add_string
(
"monitor-aspect-ratio"
,
"4:3"
,
NULL
,
MASPECT_RATIO_TEXT
,
MASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
MASPECT_RATIO_TEXT
,
MASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_bool
(
"hdtv-fix"
,
1
,
NULL
,
HDTV_FIX_TEXT
,
HDTV_FIX_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"video-deco"
,
1
,
NULL
,
VIDEO_DECO_TEXT
,
add_bool
(
"video-deco"
,
1
,
NULL
,
VIDEO_DECO_TEXT
,
VIDEO_DECO_LONGTEXT
,
VLC_TRUE
);
VIDEO_DECO_LONGTEXT
,
VLC_TRUE
);
add_string
(
"video-title"
,
NULL
,
NULL
,
VIDEO_TITLE_TEXT
,
add_string
(
"video-title"
,
NULL
,
NULL
,
VIDEO_TITLE_TEXT
,
...
...
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