提交 b18a0cc7 编写于 作者: M Michael Niedermayer 提交者: Janne Grunau

indeo5: Fix null pointer dereference.

Bug found by: Oana Stratulat
Signed-off-by: NJanne Grunau <janne-libav@jannau.net>
上级 73b16198
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册