[FFmpeg-cvslog] vformat/tee: fix uninitialized use of ret

Michael Niedermayer git at videolan.org
Sat Sep 7 22:48:16 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep  7 22:16:26 2013 +0200| [c4c3a3d580fa2f9d65af3fb6027ffbf9a28e9d55] | committer: Michael Niedermayer

vformat/tee: fix uninitialized use of ret

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c4c3a3d580fa2f9d65af3fb6027ffbf9a28e9d55
---

 libavformat/tee.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tee.c b/libavformat/tee.c
index a50ea79..40b59a4 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -387,7 +387,7 @@ static int filter_packet(void *log_ctx, AVPacket *pkt,
                          AVFormatContext *fmt_ctx, AVBitStreamFilterContext *bsf_ctx)
 {
     AVCodecContext *enc_ctx = fmt_ctx->streams[pkt->stream_index]->codec;
-    int ret;
+    int ret = 0;
 
     while (bsf_ctx) {
         AVPacket new_pkt = *pkt;



More information about the ffmpeg-cvslog mailing list