[FFmpeg-devel] [PATCH] ffmpeg: fix uninitialized return value

Tobias Rapp t.rapp at noa-archive.com
Tue Nov 22 10:16:26 EET 2016


Signed-off-by: Tobias Rapp <t.rapp at noa-archive.com>
---
 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index c47a824..4e58528 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2067,7 +2067,7 @@ static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacke
 
 static int send_frame_to_filters(InputStream *ist, AVFrame *decoded_frame)
 {
-    int i, ret;
+    int i, ret = 0;
     AVFrame *f;
 
     for (i = 0; i < ist->nb_filters; i++) {
-- 
1.9.1




More information about the ffmpeg-devel mailing list