mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/tee: Fix inconsistency wrt av_packet_ref() failure handling
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
029df555f8
commit
2b5d296533
@ -565,11 +565,11 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
|
||||
if (s2 < 0)
|
||||
continue;
|
||||
|
||||
if ((ret = av_packet_ref(&pkt2, pkt)) < 0)
|
||||
if (!ret_all) {
|
||||
if ((ret = av_packet_ref(&pkt2, pkt)) < 0) {
|
||||
if (!ret_all)
|
||||
ret_all = ret;
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
bsfs = tee->slaves[i].bsfs[s2];
|
||||
pkt2.stream_index = s2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user