[FFmpeg-devel] [PATCH 1/2] fix bug: in select filter, START_T always undefined
Michael Niedermayer
michaelni at gmx.at
Thu Aug 11 14:29:14 CEST 2011
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are too smart to engage in politics are punished by being
governed by those who are dumber. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110811/f3f93f7a/attachment.asc>
More information about the ffmpeg-devel
mailing list