diff options
author | Aleksey Vasenev <margtu-fivt@ya.ru> | 2014-11-13 01:38:29 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-13 22:35:15 +0100 |
commit | df8248f66e362c3015d95ac86d1917dde8dc0a0c (patch) | |
tree | 0b13e9b93799af0bb0844d3dc513830092d515f7 /libavfilter | |
parent | 34288651633a318d1dcebaccd9f735659f93c67c (diff) | |
download | ffmpeg-df8248f66e362c3015d95ac86d1917dde8dc0a0c.tar.gz |
avfilter/vf_interlace: more accurate pts calculation
Signed-off-by: Aleksey Vasenev <margtu-fivt@ya.ru>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_interlace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_interlace.c b/libavfilter/vf_interlace.c index e07963f79a..42e2c9a91a 100644 --- a/libavfilter/vf_interlace.c +++ b/libavfilter/vf_interlace.c @@ -111,7 +111,6 @@ static int config_out_props(AVFilterLink *outlink) outlink->time_base = inlink->time_base; outlink->frame_rate = inlink->frame_rate; // half framerate - outlink->time_base.num *= 2; outlink->frame_rate.den *= 2; outlink->flags |= FF_LINK_FLAG_REQUEST_LOOP; @@ -204,7 +203,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf) av_frame_copy_props(out, s->cur); out->interlaced_frame = 1; out->top_field_first = tff; - out->pts /= 2; // adjust pts to new framerate /* copy upper/lower field from cur */ copy_picture_field(s->cur, out, inlink, tff ? FIELD_UPPER : FIELD_LOWER, s->lowpass); |