From: Flole998 Date: Fri, 24 Mar 2023 00:06:24 +0000 (+0000) Subject: Remove deprecated get_best_effort_timestamp() call X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a1cb8cffb1d5af17c9bce2b3ef65319ab984854f;p=thirdparty%2Ftvheadend.git Remove deprecated get_best_effort_timestamp() call --- diff --git a/src/transcoding/transcode/video.c b/src/transcoding/transcode/video.c index bf24450c2..163bc2f42 100644 --- a/src/transcoding/transcode/video.c +++ b/src/transcoding/transcode/video.c @@ -309,7 +309,7 @@ tvh_video_context_open(TVHContext *self, TVHOpenPhase phase, AVDictionary **opts static int tvh_video_context_encode(TVHContext *self, AVFrame *avframe) { - avframe->pts = av_frame_get_best_effort_timestamp(avframe); + avframe->pts = avframe->best_effort_timestamp; if (avframe->pts <= self->pts) { tvh_context_log(self, LOG_WARNING, "Invalid pts (%"PRId64") <= last (%"PRId64"), dropping frame",