[FFmpeg-cvslog] r20770 - trunk/ffmpeg.c
michael
subversion
Tue Dec 8 15:50:46 CET 2009
Author: michael
Date: Tue Dec 8 15:50:46 2009
New Revision: 20770
Log:
Do as the comment says and signal an error.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Tue Dec 8 15:48:36 2009 (r20769)
+++ trunk/ffmpeg.c Tue Dec 8 15:50:46 2009 (r20770)
@@ -583,8 +583,10 @@ static void do_audio_out(AVFormatContext
av_fast_malloc(&audio_buf, &allocated_audio_buf_size, audio_buf_size);
av_fast_malloc(&audio_out, &allocated_audio_out_size, audio_out_size);
- if (!audio_buf || !audio_out)
- return; /* Should signal an error ! */
+ if (!audio_buf || !audio_out){
+ fprintf(stderr, "Out of memory in do_audio_out\n");
+ av_exit(1);
+ }
if (enc->channels != dec->channels)
ost->audio_resample = 1;
More information about the ffmpeg-cvslog
mailing list