mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avdevice/openal-dec: Check the return code of av_new_packet()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b396914c68
commit
bf8bcd3b2b
@ -192,7 +192,8 @@ static int read_packet(AVFormatContext* ctx, AVPacket *pkt)
|
||||
if (error = al_get_error(ad->device, &error_msg)) goto fail;
|
||||
|
||||
/* Create a packet of appropriate size */
|
||||
av_new_packet(pkt, nb_samples*ad->sample_step);
|
||||
if ((error = av_new_packet(pkt, nb_samples*ad->sample_step)) < 0)
|
||||
goto fail;
|
||||
pkt->pts = av_gettime();
|
||||
|
||||
/* Fill the packet with the available samples */
|
||||
|
Loading…
Reference in New Issue
Block a user