diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-06 00:22:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-03 20:56:12 +0200 |
commit | 2b5d296533e75eb40a6cba656538703cdfcf11aa (patch) | |
tree | 5d616b7610f4a958305bdaedc9442984f23de559 /libavformat | |
parent | 029df555f80952acf953322e0ee22903bf862e81 (diff) |
avformat/tee: Fix inconsistency wrt av_packet_ref() failure handling
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/tee.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c index bb31218ac5..2a32dd8d10 100644 --- a/libavformat/tee.c +++ b/libavformat/tee.c @@ -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; |