[FFmpeg-devel] [PATCH] avfilter/vf_decimate: do not change pts

Michael Niedermayer michaelni at gmx.at
Sat Oct 12 00:09:49 CEST 2013


On Fri, Oct 11, 2013 at 04:55:27PM +0000, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavfilter/vf_decimate.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/libavfilter/vf_decimate.c b/libavfilter/vf_decimate.c
> index abd0776..e94783a 100644
> --- a/libavfilter/vf_decimate.c
> +++ b/libavfilter/vf_decimate.c
> @@ -42,7 +42,6 @@ typedef struct {
>      AVFrame *last;          ///< last frame from the previous queue
>      AVFrame **clean_src;    ///< frame queue for the clean source
>      int got_frame[2];       ///< frame request flag for each input stream
> -    double ts_unit;         ///< timestamp units for the output frames
>      uint32_t eof;           ///< bitmask for end of stream
>      int hsub, vsub;         ///< chroma subsampling values
>      int depth;
> @@ -214,7 +213,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
>                  av_frame_free(&frame);
>                  frame = dm->clean_src[i];
>              }
> -            frame->pts = outlink->frame_count * dm->ts_unit;
>              ret = ff_filter_frame(outlink, frame);
>              if (ret < 0)
>                  break;
> @@ -370,7 +368,6 @@ static int config_output(AVFilterLink *outlink)
>      outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
>      outlink->w = inlink->w;
>      outlink->h = inlink->h;
> -    dm->ts_unit = av_q2d(av_inv_q(av_mul_q(fps, outlink->time_base)));
>      return 0;
>  }

probably ok, or rather the code you remove looks wrong so it should
be better without it if it works

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- 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/20131012/41f015e9/attachment.asc>


More information about the ffmpeg-devel mailing list