From 444a8cbc2fd99f9311162a14d5309e7d87621afd Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Thu, 10 Jun 2021 02:38:28 +0200 Subject: Fix: VSE search in mpegts files would fail ffmpeg_generic_seek_workaround did work properly and our start pts calculation was wrong. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D11562 --- intern/ffmpeg/ffmpeg_compat.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'intern') diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h index 6fefa164dc3..bb5b439d073 100644 --- a/intern/ffmpeg/ffmpeg_compat.h +++ b/intern/ffmpeg/ffmpeg_compat.h @@ -92,26 +92,6 @@ void my_guess_pkt_duration(AVFormatContext *s, AVStream *st, AVPacket *pkt) } #endif -FFMPEG_INLINE -void my_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp) -{ - int i; - - for (i = 0; i < s->nb_streams; i++) { - AVStream *st = s->streams[i]; - - st->cur_dts = av_rescale(timestamp, - st->time_base.den * (int64_t)ref_st->time_base.num, - st->time_base.num * (int64_t)ref_st->time_base.den); - } -} - -FFMPEG_INLINE -void av_update_cur_dts(AVFormatContext *s, AVStream *ref_st, int64_t timestamp) -{ - my_update_cur_dts(s, ref_st, timestamp); -} - FFMPEG_INLINE int64_t timestamp_from_pts_or_dts(int64_t pts, int64_t dts) { -- cgit v1.2.3