Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
17944b67
Commit
17944b67
authored
Dec 07, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/theora.c: bug fix with aspect ratio.
parent
a954058f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/codec/theora.c
modules/codec/theora.c
+13
-3
No files found.
modules/codec/theora.c
View file @
17944b67
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* theora.c: theora decoder module making use of libtheora.
* theora.c: theora decoder module making use of libtheora.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: theora.c,v 1.1
7 2003/12/07 17:53:45
gbazin Exp $
* $Id: theora.c,v 1.1
8 2003/12/07 18:15:46
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -475,8 +475,18 @@ static int OpenEncoder( vlc_object_t *p_this )
...
@@ -475,8 +475,18 @@ static int OpenEncoder( vlc_object_t *p_this )
p_sys
->
ti
.
offset_y
=
frame_y_offset
;
p_sys
->
ti
.
offset_y
=
frame_y_offset
;
p_sys
->
ti
.
fps_numerator
=
video_hzn
;
p_sys
->
ti
.
fps_numerator
=
video_hzn
;
p_sys
->
ti
.
fps_denominator
=
video_hzd
;
p_sys
->
ti
.
fps_denominator
=
video_hzd
;
p_sys
->
ti
.
aspect_numerator
=
p_enc
->
fmt_in
.
video
.
i_aspect
;
p_sys
->
ti
.
aspect_denominator
=
VOUT_ASPECT_FACTOR
;
if
(
p_enc
->
fmt_in
.
video
.
i_aspect
)
{
p_sys
->
ti
.
aspect_numerator
=
p_enc
->
fmt_in
.
video
.
i_aspect
;
p_sys
->
ti
.
aspect_denominator
=
VOUT_ASPECT_FACTOR
;
}
else
{
p_sys
->
ti
.
aspect_numerator
=
4
;
p_sys
->
ti
.
aspect_denominator
=
3
;
}
p_sys
->
ti
.
target_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
;
p_sys
->
ti
.
target_bitrate
=
p_enc
->
fmt_out
.
i_bitrate
;
p_sys
->
ti
.
quality
=
video_q
;
p_sys
->
ti
.
quality
=
video_q
;
...
...
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