4xm: don't rely on get_buffer() initializing the frame.

(cherry picked from commit b047c68783)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
Anton Khirnov
2012-11-13 22:10:54 +01:00
committed by Reinhard Tartler
parent 9248f789d1
commit 078e68d261

View File

@@ -807,6 +807,7 @@ static int decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}
memset(f->last_picture.data[0], 0, avctx->height * FFABS(f->last_picture.linesize[0]));
}
p->pict_type= AV_PICTURE_TYPE_P;