1
mirror of https://github.com/mpv-player/mpv synced 2024-08-28 05:46:13 +02:00

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

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;