aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-02 22:30:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-10 22:40:50 +0200
commitb63ec0cb0fb5998584337f9f11bf74ac27f23921 (patch)
tree8f6cbf76b40fa9f9645ffc56f1bf40c970238481
parent2eb72d5bdcd5d06a2440bdfb411583362745b5ec (diff)
downloadffmpeg-b63ec0cb0fb5998584337f9f11bf74ac27f23921.tar.gz
avformat/tee: flip assigment direction
Found-by: CSA Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 2e6fdcb7f3c86491408a3699f0aa9dc52b7c5686) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index f26e15742a..681f94330a 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;