Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
VLC
Commits
7a879adc
Commit
7a879adc
authored
Oct 19, 2005
by
Marian Durkovic
Browse files
1088->1080 fix for broken HDTV encoders; could be disabled via --no-hdtv-fix
parent
818d87e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/input/decoder.c
View file @
7a879adc
...
...
@@ -926,10 +926,11 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
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;
*/
msg_Warn
(
p_dec
,
"
B
roken HDTV stream (display_height=1088)"
);
p_dec
->
fmt_out
.
video
.
i_visible_height
=
1080
;
msg_Warn
(
p_dec
,
"
Fixing b
roken HDTV stream (display_height=1088)"
);
}
if
(
!
p_dec
->
fmt_out
.
video
.
i_sar_num
||
...
...
src/libvlc.h
View file @
7a879adc
...
...
@@ -288,6 +288,13 @@ static char *ppsz_align_descriptions[] =
"aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
"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_LONGTEXT N_( \
"This will force the monitor aspect ratio. Most monitors have a 4:3." \
...
...
@@ -1017,6 +1024,7 @@ vlc_module_begin();
ASPECT_RATIO_TEXT
,
ASPECT_RATIO_LONGTEXT
,
VLC_FALSE
);
add_string
(
"monitor-aspect-ratio"
,
"4:3"
,
NULL
,
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
,
VIDEO_DECO_LONGTEXT
,
VLC_TRUE
);
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