mirror of https://github.com/mpv-player/mpv
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:
parent
6d61c5f68a
commit
be47e22b55
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue