mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-02 01:03:50 +00:00
Fix incorrect error checking
This commit is contained in:
parent
54258ee3ad
commit
c62fd57328
1 changed files with 2 additions and 3 deletions
|
@ -381,12 +381,11 @@ static void InitialiseAudioBuffer(movie_t *movie)
|
|||
{
|
||||
movieaudioframe_t *frame = EnqueueBuffer(&stream->framepool);
|
||||
|
||||
av_samples_alloc(
|
||||
if (!av_samples_alloc(
|
||||
frame->samples, NULL,
|
||||
movie->frame->channels, movie->frame->nb_samples,
|
||||
AV_SAMPLE_FMT_S16, 1
|
||||
);
|
||||
if (!frame->samples)
|
||||
))
|
||||
I_Error("FFmpeg: cannot allocate samples");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue