OSDN Git Service

avformat/tee: add forgotten ret assignment
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Mar 2013 14:09:10 +0000 (15:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 19 Mar 2013 14:09:10 +0000 (15:09 +0100)
Fixes CID991840
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tee.c

index f41327b..10787ca 100644 (file)
@@ -100,7 +100,7 @@ static int open_slave(AVFormatContext *avf, char *slave, AVFormatContext **ravf)
         av_dict_set(&options, "f", NULL, 0);
     }
 
-    avformat_alloc_output_context2(&avf2, NULL, format, filename);
+    ret = avformat_alloc_output_context2(&avf2, NULL, format, filename);
     if (ret < 0)
         goto fail;
     av_free(format);