diff options
author | Jan Ekström <jeebjp@gmail.com> | 2018-10-01 20:25:33 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-10-01 23:34:11 +0300 |
commit | be47e22b553c6086536b7e16b9033b6f4a510600 (patch) | |
tree | e65dbd09b0127a512858298837a07f35c831f5c2 | |
parent | 6d61c5f68a5b1faaaf5a38080c690e35bd31858c (diff) |
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.
-rw-r--r-- | common/encode_lavc.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |