[FFmpeg-devel] [PATCH 27/34] avformat/tee: Fix inconsistency wrt av_packet_ref() failure handling
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Sep 6 05:27:55 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavformat/tee.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 759535bdea..a5bf34d083 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;
--
2.30.2
More information about the ffmpeg-devel
mailing list