Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
aea3e125
Commit
aea3e125
authored
Jan 14, 2010
by
Jan Gerber
Browse files
use stream.time_base for subtitles to keep time from input if possible, patch by ogg.k
parent
4a25e37a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ffmpeg2theora.c
View file @
aea3e125
...
...
@@ -1217,8 +1217,15 @@ void ff2theora_output(ff2theora this) {
ki
->
gps_denominator
=
this
->
framerate_new
.
den
;
}
else
{
ki
->
gps_numerator
=
vstream_fps
.
num
;
ki
->
gps_denominator
=
vstream_fps
.
den
;
AVStream
*
stream
=
this
->
context
->
streams
[
ks
->
stream_index
];
if
(
stream
->
time_base
.
num
>
0
)
{
ki
->
gps_numerator
=
stream
->
time_base
.
den
;
ki
->
gps_denominator
=
stream
->
time_base
.
num
;
}
else
{
ki
->
gps_numerator
=
vstream_fps
.
num
;
ki
->
gps_denominator
=
vstream_fps
.
den
;
}
}
}
ki
->
granule_shift
=
32
;
...
...
Write
Preview
Supports
Markdown
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