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-05 04:45:56 +0200
commit01c4fe7ee7b3a12cb536768edf45baf7a25d6fd2 (patch)
treec238d0924605b6d6b66a03c2a41171bfafbe38d9
parentad13a5c8fa092601290998fdf4a989e230c9022a (diff)
downloadffmpeg-01c4fe7ee7b3a12cb536768edf45baf7a25d6fd2.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 12ea0ea27d..90c9759af5 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -468,7 +468,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;