From: Michael Niedermayer Date: Sat, 2 Aug 2014 20:30:03 +0000 (+0200) Subject: avformat/tee: flip assigment direction X-Git-Tag: android-x86-4.4-r2^2~76 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=72149fcb1b79ce38f4c9e0e49d9b1062a9d92d64;p=android-x86%2Fexternal-ffmpeg.git avformat/tee: flip assigment direction Found-by: CSA Reviewed-by: Nicolas George Signed-off-by: Michael Niedermayer (cherry picked from commit 2e6fdcb7f3c86491408a3699f0aa9dc52b7c5686) Signed-off-by: Michael Niedermayer --- 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;