mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
check av_fifo_alloc return
Originally committed as revision 18892 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
24dc7776ff
commit
ec6b02b6fd
@ -193,6 +193,8 @@ static int swf_write_header(AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
swf->audio_enc = enc;
|
swf->audio_enc = enc;
|
||||||
swf->audio_fifo= av_fifo_alloc(AUDIO_FIFO_SIZE);
|
swf->audio_fifo= av_fifo_alloc(AUDIO_FIFO_SIZE);
|
||||||
|
if (!swf->audio_fifo)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
} else {
|
} else {
|
||||||
av_log(s, AV_LOG_ERROR, "SWF muxer only supports MP3\n");
|
av_log(s, AV_LOG_ERROR, "SWF muxer only supports MP3\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user