Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
ffmpeg2theora
Commits
0f91c19c
Commit
0f91c19c
authored
Jan 04, 2010
by
Jan Gerber
Browse files
try TH_ENCCTL_SET_DUP_COUNT but handle TH_EINVAL
parent
679ff291
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ffmpeg2theora.c
View file @
0f91c19c
...
...
@@ -1413,14 +1413,12 @@ void ff2theora_output(ff2theora this) {
if
(
got_picture
||
video_eos
)
{
prepare_ycbcr_buffer
(
this
,
ycbcr
,
output_buffered
);
if
(
dups
>
0
)
{
int
_dups
=
dups
;
/*
//this only works if dups is < keyint,
//this only works if dups < keyint,
//see http://theora.org/doc/libtheora-1.1/theoraenc_8h.html#a8bb9b05471c42a09f8684a2583b8a1df
th_encode_ctl(info.td,TH_ENCCTL_SET_DUP_COUNT,&
_
dups,sizeof(int))
;
*/
while
(
_dups
--
)
{
oggmux_add_video
(
&
info
,
ycbcr
,
video_eos
);
if
(
th_encode_ctl
(
info
.
td
,
TH_ENCCTL_SET_DUP_COUNT
,
&
dups
,
sizeof
(
int
))
==
TH_EINVAL
)
{
int
_dups
=
dups
;
while
(
_dups
--
)
oggmux_add_video
(
&
info
,
ycbcr
,
video_eos
);
}
}
oggmux_add_video
(
&
info
,
ycbcr
,
video_eos
);
...
...
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