[FFmpeg-devel] [PATCH] avfilter/vf_telecine: Fix AV desync by using the first input timestamp
Michael Niedermayer
michaelni at gmx.at
Wed Mar 25 21:35:39 CET 2015
On Thu, Mar 26, 2015 at 01:16:16AM +0530, Himangi Saraogi wrote:
> ---
> libavfilter/vf_telecine.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/libavfilter/vf_telecine.c b/libavfilter/vf_telecine.c
> index a0f28d4..4b46ac4 100644
> --- a/libavfilter/vf_telecine.c
> +++ b/libavfilter/vf_telecine.c
> @@ -38,6 +38,7 @@ typedef struct {
> int first_field;
> char *pattern;
> unsigned int pattern_pos;
> + int64_t start_time;
>
> AVRational pts;
> double ts_unit;
> @@ -89,6 +90,8 @@ static av_cold int init(AVFilterContext *ctx)
> s->pts.den += *p - '0';
> }
>
> + s->start_time = -1;
should be AV_NOPTS_VALUE
timestaps can be negative so -1 could occur as a normal start time
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150325/3fa1668d/attachment.asc>
More information about the ffmpeg-devel
mailing list