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.
This commit is contained in:
Jan Ekström 2018-10-01 20:25:33 +03:00
parent 6d61c5f68a
commit be47e22b55
1 changed files with 0 additions and 2 deletions

View File

@ -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;