projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d4c62
)
vda: Check the correct pointer for buffer allocation
author
Luca Barbato
<lu_zero@gentoo.org>
Thu, 2 Jul 2015 23:56:16 +0000
(
01:56
+0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Thu, 2 Jul 2015 23:58:32 +0000
(
01:58
+0200)
CC: libav-stable@libav.org
Found-By: kropping
libavcodec/vda_h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/vda_h264.c
b/libavcodec/vda_h264.c
index
0692f60
..
62ad5e9
100644
(file)
--- a/
libavcodec/vda_h264.c
+++ b/
libavcodec/vda_h264.c
@@
-359,7
+359,7
@@
static int vda_h264_end_frame(AVCodecContext *avctx)
sizeof(vda->frame),
release_buffer, NULL,
AV_BUFFER_FLAG_READONLY);
- if (!frame->buf)
+ if (!frame->buf
[0]
)
return AVERROR(ENOMEM);
frame->data[3] = (uint8_t*)vda->frame;