From 2048125f0ca604ff3f5a18fe2494004174fda36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93@gmail.com> Date: Sun, 29 Jan 2023 13:33:34 +0100 Subject: [PATCH] ao_lavc: remove unused code --- audio/out/ao_lavc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index abeefeed27..84cb32b25a 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -182,18 +182,8 @@ fail: static void uninit(struct ao *ao) { struct priv *ac = ao->priv; - struct encode_lavc_context *ectx = ao->encode_lavc_ctx; if (!ac->shutdown) { - double outpts = ac->expected_next_pts; - - pthread_mutex_lock(&ectx->lock); - if (!ac->enc->options->rawts) - outpts += ectx->discontinuity_pts_offset; - pthread_mutex_unlock(&ectx->lock); - - outpts += encoder_get_offset(ac->enc); - if (!write_frame(ao, MP_EOF_FRAME)) MP_WARN(ao, "could not flush last frame\n"); encoder_encode(ac->enc, NULL);