vformat/tee: fix uninitialized use of ret
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Sep 2013 20:16:26 +0000 (22:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 7 Sep 2013 20:43:32 +0000 (22:43 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tee.c

index a50ea79..40b59a4 100644 (file)
@@ -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;