1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Do as the comment says and signal an error.

Originally committed as revision 20770 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2009-12-08 14:50:46 +00:00
parent b8919a3092
commit e185a2f649

View File

@ -583,8 +583,10 @@ static void do_audio_out(AVFormatContext *s,
av_fast_malloc(&audio_buf, &allocated_audio_buf_size, audio_buf_size); av_fast_malloc(&audio_buf, &allocated_audio_buf_size, audio_buf_size);
av_fast_malloc(&audio_out, &allocated_audio_out_size, audio_out_size); av_fast_malloc(&audio_out, &allocated_audio_out_size, audio_out_size);
if (!audio_buf || !audio_out) if (!audio_buf || !audio_out){
return; /* Should signal an error ! */ fprintf(stderr, "Out of memory in do_audio_out\n");
av_exit(1);
}
if (enc->channels != dec->channels) if (enc->channels != dec->channels)
ost->audio_resample = 1; ost->audio_resample = 1;