summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-09-03 12:29:12 +0200
committerwm4 <wm4@nowhere>2020-09-03 12:29:12 +0200
commit2761f37fe48aa5b3aae3c4d4ce611a6ef07db0ae (patch)
treec7013e26187bef150fcb199111ab0f0145e17a6c /player
parentb9baa1598a72d1144053819a97665161565a4a3b (diff)
downloadmpv-2761f37fe48aa5b3aae3c4d4ce611a6ef07db0ae.tar.bz2
mpv-2761f37fe48aa5b3aae3c4d4ce611a6ef07db0ae.tar.xz
encode: remove early EOF failure handling
I don't see the point of this. Not doing it may defer an error to later. That's OK? For now, it seems better to reduce the encoding internal API. If someone can demonstrate that this is needed, I might reimplement it in a different way.
Diffstat (limited to 'player')
-rw-r--r--player/audio.c1
-rw-r--r--player/video.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c
index 739122531f..f4175bc901 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -927,7 +927,6 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
MP_VERBOSE(mpctx, "audio EOF reached\n");
mpctx->audio_status = STATUS_EOF;
mp_wakeup_core(mpctx);
- encode_lavc_stream_eof(mpctx->encode_lavc_ctx, STREAM_AUDIO);
}
}
diff --git a/player/video.c b/player/video.c
index 387a366666..2b8f03630e 100644
--- a/player/video.c
+++ b/player/video.c
@@ -1072,7 +1072,6 @@ void write_video(struct MPContext *mpctx)
if (mpctx->time_frame <= 0 || !has_frame) {
MP_VERBOSE(mpctx, "video EOF reached\n");
mpctx->video_status = STATUS_EOF;
- encode_lavc_stream_eof(mpctx->encode_lavc_ctx, STREAM_VIDEO);
}
}