[FFmpeg-cvslog] r19194 - trunk/ffmpeg.c

mru subversion
Mon Jun 15 01:14:54 CEST 2009


Author: mru
Date: Mon Jun 15 01:14:54 2009
New Revision: 19194

Log:
Print error message when output buffer allocation fails

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Mon Jun 15 00:41:30 2009	(r19193)
+++ trunk/ffmpeg.c	Mon Jun 15 01:14:54 2009	(r19194)
@@ -1930,6 +1930,8 @@ static int av_encode(AVFormatContext **o
     if (!bit_buffer)
         bit_buffer = av_malloc(bit_buffer_size);
     if (!bit_buffer) {
+        fprintf(stderr, "Cannot allocate %d bytes output buffer\n",
+                bit_buffer_size);
         ret = AVERROR(ENOMEM);
         goto fail;
     }



More information about the ffmpeg-cvslog mailing list