diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-20 22:06:35 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-07 00:18:42 +0100 |
commit | b18a0cc781b791912549504ca8a257f35a151c5e (patch) | |
tree | 6e22dea5da14bd02a89d9f0ddb16e1996654492b | |
parent | 73b16198b6cab1cdafa46143aae7a69e10e130fd (diff) | |
download | ffmpeg-b18a0cc781b791912549504ca8a257f35a151c5e.tar.gz |
indeo5: Fix null pointer dereference.
Bug found by: Oana Stratulat
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
-rw-r--r-- | libavcodec/ivi_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 9cec0a83a2..eedcd28ada 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -611,6 +611,9 @@ void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) const int16_t *src = plane->bands[0].buf; uint32_t pitch = plane->bands[0].pitch; + if (!src) + return; + for (y = 0; y < plane->height; y++) { for (x = 0; x < plane->width; x++) dst[x] = av_clip_uint8(src[x] + 128); |