OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9acffed
)
vf_select: set start_t if undefined
author
William Yu
<genwillyu@gmail.com>
Thu, 11 Aug 2011 13:40:03 +0000
(15:40 +0200)
committer
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Thu, 11 Aug 2011 14:08:55 +0000
(16:08 +0200)
Previously start_t was never set.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
libavfilter/vf_select.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_select.c
b/libavfilter/vf_select.c
index
3d05167
..
455e177
100644
(file)
--- a/
libavfilter/vf_select.c
+++ b/
libavfilter/vf_select.c
@@
-185,6
+185,8
@@
static int select_frame(AVFilterContext *ctx, AVFilterBufferRef *picref)
if (isnan(select->var_values[VAR_START_PTS]))
select->var_values[VAR_START_PTS] = TS2D(picref->pts);
+ if (isnan(select->var_values[VAR_START_T]))
+ select->var_values[VAR_START_T] = TS2D(picref->pts) * av_q2d(inlink->time_base);
select->var_values[VAR_PTS] = TS2D(picref->pts);
select->var_values[VAR_T ] = picref->pts * av_q2d(inlink->time_base);