fftools/ffmpeg_mux: return errors from of_streamcopy() instead of aborting

This commit is contained in:
Anton Khirnov
2023-07-12 19:52:19 +02:00
parent 464a5e8e76
commit 2e742a2c3c
3 changed files with 16 additions and 10 deletions

View File

@@ -839,7 +839,9 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo
continue;
}
of_streamcopy(ost, pkt, dts_est);
ret = of_streamcopy(ost, pkt, dts_est);
if (ret < 0)
return ret;
}
return !eof_reached;