From be47e22b553c6086536b7e16b9033b6f4a510600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Mon, 1 Oct 2018 20:25:33 +0300 Subject: encode: simplify encode_lavc_add_packet We're doing the same thing as the primary path - just that we log and set 'failed' to true. --- common/encode_lavc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common') diff --git a/common/encode_lavc.c b/common/encode_lavc.c index 7cf18750cc..213e2ba5a1 100644 --- a/common/encode_lavc.c +++ b/common/encode_lavc.c @@ -476,8 +476,6 @@ static void encode_lavc_add_packet(struct mux_stream *dst, AVPacket *pkt) if (av_interleaved_write_frame(p->muxer, pkt) < 0) { MP_ERR(p, "Writing packet failed.\n"); p->failed = true; - pkt = NULL; - goto done; } pkt = NULL; -- cgit v1.2.3