[FFmpeg-devel] [PATCH] avformat/tee: flip assigment direction

Michael Niedermayer michaelni at gmx.at
Sat Aug 2 22:37:30 CEST 2014


Found-by: CSA
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/tee.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tee.c b/libavformat/tee.c
index f26e157..681f943 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -467,7 +467,7 @@ static int tee_write_packet(AVFormatContext *avf, AVPacket *pkt)
         if ((ret = av_copy_packet(&pkt2, pkt)) < 0 ||
             (ret = av_dup_packet(&pkt2))< 0)
             if (!ret_all) {
-                ret = ret_all;
+                ret_all = ret;
                 continue;
             }
         tb  = avf ->streams[s ]->time_base;
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list