diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-11-09 14:17:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-09 14:17:42 +0100 |
commit | 4c6e7c2d4d9810d56ee0770e8c9ad68452e83c58 (patch) | |
tree | 0eee8aa86f576ae674f10c36b9117a6c7119a7be /libavcodec/ivi_common.c | |
parent | 13451f5520ce6b0afde861b2285dda659f8d4fb4 (diff) | |
download | ffmpeg-4c6e7c2d4d9810d56ee0770e8c9ad68452e83c58.tar.gz |
ivi_common: dont dereference null pointers.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ivi_common.c')
-rw-r--r-- | libavcodec/ivi_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index fb553fd819..32c0b0fd91 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -239,6 +239,7 @@ av_cold void ff_ivi_free_buffers(IVIPlaneDesc *planes) int p, b, t; for (p = 0; p < 3; p++) { + if (planes[p].bands) for (b = 0; b < planes[p].num_bands; b++) { av_freep(&planes[p].bands[b].bufs[0]); av_freep(&planes[p].bands[b].bufs[1]); |