aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bgmc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-20 15:32:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-20 15:33:44 +0200
commitd7cabb3c7e843c2028b398cb19a40db84d40c790 (patch)
treef3591db2fce9db79e25d1bbd0ee2a384b94fcebb /libavcodec/bgmc.c
parentbf52ad1e49d3e62eed5b1282f54cd331082a086e (diff)
downloadffmpeg-d7cabb3c7e843c2028b398cb19a40db84d40c790.tar.gz
bgmc: check the correct pointers
Fixes CID90539, CID90538 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bgmc.c')
-rw-r--r--libavcodec/bgmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bgmc.c b/libavcodec/bgmc.c
index 8b84ebfa95..f48ac2e4bc 100644
--- 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);