Skip to content
Snippets Groups Projects
Commit b18a0cc7 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Janne Grunau
Browse files

indeo5: Fix null pointer dereference.


Bug found by: Oana Stratulat

Signed-off-by: default avatarJanne Grunau <janne-libav@jannau.net>
parent 73b16198
No related branches found
No related tags found
No related merge requests found
...@@ -611,6 +611,9 @@ void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch) ...@@ -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; const int16_t *src = plane->bands[0].buf;
uint32_t pitch = plane->bands[0].pitch; uint32_t pitch = plane->bands[0].pitch;
if (!src)
return;
for (y = 0; y < plane->height; y++) { for (y = 0; y < plane->height; y++) {
for (x = 0; x < plane->width; x++) for (x = 0; x < plane->width; x++)
dst[x] = av_clip_uint8(src[x] + 128); dst[x] = av_clip_uint8(src[x] + 128);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment