diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-02-03 20:59:07 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-02-05 11:55:12 +0100 |
commit | 931192226b757103883cdd5c8a256c09b2372e09 (patch) | |
tree | 20a45a3814152dddf9bbf0eb3e99665b40607566 /fftools/ffmpeg_mux.c | |
parent | 71ea90638efa56b4cd006bfa6cfb464d2169692d (diff) | |
download | ffmpeg-931192226b757103883cdd5c8a256c09b2372e09.tar.gz |
fftools/ffmpeg_mux: fix terminating muxer on streamcopy with -t
Reported-by: Andreas Rheinhardt
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r-- | fftools/ffmpeg_mux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index ee708267c1..e65fe89992 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -300,6 +300,7 @@ static int mux_packet_filter(Muxer *mux, MuxThreadContext *mt, av_packet_unref(pkt); pkt = NULL; ret = 0; + *stream_eof = 1; } else if (ret < 0) goto fail; } @@ -352,14 +353,13 @@ static int mux_packet_filter(Muxer *mux, MuxThreadContext *mt, goto mux_fail; } *stream_eof = 1; - return AVERROR_EOF; } else { ret = sync_queue_process(mux, ms, pkt, stream_eof); if (ret < 0) goto mux_fail; } - return 0; + return *stream_eof ? AVERROR_EOF : 0; mux_fail: err_msg = "submitting a packet to the muxer"; |