[FFmpeg-devel] [PATCH 1/2] fix bug: in select filter, START_T always undefined
Stefano Sabatini
stefano.sabatini-lala at poste.it
Thu Aug 11 15:50:18 CEST 2011
On date Thursday 2011-08-11 14:29:14 +0200, Michael Niedermayer encoded:
> On Thu, Aug 11, 2011 at 06:15:04PM +0800, William Yu wrote:
> > ---
> > libavfilter/vf_select.c | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
>
> > vf_select.c | 2 ++
> > 1 file changed, 2 insertions(+)
> > 07fab3705fb829b111ed789e55b40717baaa4037 0001-fix-bug-START_T-always-undefined.patch
> > diff --git a/libavfilter/vf_select.c b/libavfilter/vf_select.c
> > index 3d05167..fe6bb4b 100644
> > --- 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] = picref->pts * av_q2d(inlink->time_base);
>
> this should to use TS2D or check for AV_NOPTS_VALUE
Pushed a variant of this, will apply soon, thanks for the patch.
--
FFmpeg = Fast and Fast Meaningless Patchable Eretic Gospel
More information about the ffmpeg-devel
mailing list