Commit bb66a3d0 authored by michael's avatar michael

Do as the comment says and signal an error.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20770 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a9858917
......@@ -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_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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment