Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
808e6123
Commit
808e6123
authored
Dec 03, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transcode: assume user requests visible width/height so init those instead of with/height
parent
47f4dd31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/stream_out/transcode/video.c
modules/stream_out/transcode/video.c
+4
-4
No files found.
modules/stream_out/transcode/video.c
View file @
808e6123
...
...
@@ -852,8 +852,8 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
id
->
p_uf_chain
=
NULL
;
/* Reinitialize filters */
id
->
p_encoder
->
fmt_out
.
video
.
i_width
=
p_sys
->
i_width
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_height
=
p_sys
->
i_height
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_
visible_
width
=
p_sys
->
i_width
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_
visible_
height
=
p_sys
->
i_height
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_sar_num
=
id
->
p_encoder
->
fmt_out
.
video
.
i_sar_den
=
0
;
transcode_video_filter_init
(
p_stream
,
id
);
...
...
@@ -996,8 +996,8 @@ bool transcode_video_add( sout_stream_t *p_stream, es_format_t *p_fmt,
/* Complete destination format */
id
->
p_encoder
->
fmt_out
.
i_codec
=
p_sys
->
i_vcodec
;
id
->
p_encoder
->
fmt_out
.
video
.
i_width
=
p_sys
->
i_width
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_height
=
p_sys
->
i_height
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_
visible_
width
=
p_sys
->
i_width
&
~
1
;
id
->
p_encoder
->
fmt_out
.
video
.
i_
visible_
height
=
p_sys
->
i_height
&
~
1
;
id
->
p_encoder
->
fmt_out
.
i_bitrate
=
p_sys
->
i_vbitrate
;
/* Build decoder -> filter -> encoder chain */
...
...
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