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:
bf52ad1
)
bgmc: check the correct pointers
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Oct 2012 13:32:59 +0000
(15:32 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 20 Oct 2012 13:33:44 +0000
(15:33 +0200)
Fixes CID90539, CID90538
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bgmc.c
patch
|
blob
|
history
diff --git
a/libavcodec/bgmc.c
b/libavcodec/bgmc.c
index
8b84ebf
..
f48ac2e
100644
(file)
--- a/
libavcodec/bgmc.c
+++ b/
libavcodec/bgmc.c
@@
-461,7
+461,7
@@
int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status)
*cf_lut = av_malloc(sizeof(**cf_lut) * LUT_BUFF * 16 * LUT_SIZE);
*cf_lut_status = av_malloc(sizeof(**cf_lut_status) * LUT_BUFF);
- if (!
cf_lut || !
cf_lut_status) {
+ if (!
*cf_lut || !*
cf_lut_status) {
ff_bgmc_end(cf_lut, cf_lut_status);
av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
return AVERROR(ENOMEM);