Commit ac368155 authored by mru's avatar mru

coded line size is a multiple of 4


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6844 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1fce8ba1
......@@ -177,7 +177,8 @@ static int bmp_decode_frame(AVCodecContext *avctx,
buf += hsize;
dsize = buf_size - hsize;
n = avctx->width * (depth / 8);
/* Line size in file multiple of 4 */
n = (avctx->width * (depth / 8) + 3) & ~3;
if(n * avctx->height > dsize){
av_log(avctx, AV_LOG_ERROR, "not enough data (%d < %d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment