diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-01-29 13:33:34 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-02 14:23:02 +0000 |
commit | 2048125f0ca604ff3f5a18fe2494004174fda36a (patch) | |
tree | e6530bfbc2a63922ac32356084ff7a1ad10ab8cc /audio/out/ao_lavc.c | |
parent | 0a4b139ddf2d24d18cc70f779fa7022ca6b601b6 (diff) | |
download | mpv-2048125f0ca604ff3f5a18fe2494004174fda36a.tar.bz2 mpv-2048125f0ca604ff3f5a18fe2494004174fda36a.tar.xz |
ao_lavc: remove unused code
Diffstat (limited to 'audio/out/ao_lavc.c')
-rw-r--r-- | audio/out/ao_lavc.c | 10 |
1 files changed, 0 insertions, 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); |