changeset 4949:476f163342ba libavformat

fail if stream fifo could not be allocated
author bcoudurier
date Fri, 22 May 2009 19:11:56 +0000
parents 09e81ac02d25
children 3be97dd76d2c
files mpegenc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegenc.c	Fri May 22 18:34:01 2009 +0000
+++ b/mpegenc.c	Fri May 22 19:11:56 2009 +0000
@@ -382,6 +382,8 @@
             return -1;
         }
         stream->fifo= av_fifo_alloc(16);
+        if (!stream->fifo)
+            goto fail;
     }
     bitrate = 0;
     audio_bitrate = 0;