OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b396914
)
avdevice/openal-dec: Check the return code of av_new_packet()
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 18 Jan 2015 23:34:18 +0000
(
00:34
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 18 Jan 2015 23:34:18 +0000
(
00:34
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/openal-dec.c
patch
|
blob
|
history
diff --git
a/libavdevice/openal-dec.c
b/libavdevice/openal-dec.c
index
4c4ba28
..
37d321a
100644
(file)
--- a/
libavdevice/openal-dec.c
+++ b/
libavdevice/openal-dec.c
@@
-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 */