Commit de5ce047 authored by benoit's avatar benoit

check alac EOF marker

Patch by Matthieu Castet castet matthieu free fr


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12891 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9dde37a1
......@@ -548,6 +548,8 @@ static int alac_decode_frame(AVCodecContext *avctx,
interlacing_shift = 0;
interlacing_leftweight = 0;
}
if (get_bits(&alac->gb, 3) != 7)
av_log(avctx, AV_LOG_ERROR, "Error : Wrong End Of Frame\n");
switch(alac->setinfo_sample_size) {
case 16:
......@@ -577,6 +579,9 @@ static int alac_decode_frame(AVCodecContext *avctx,
break;
}
if (input_buffer_size * 8 - get_bits_count(&alac->gb) > 8)
av_log(avctx, AV_LOG_ERROR, "Error : %d bits left\n", input_buffer_size * 8 - get_bits_count(&alac->gb));
return input_buffer_size;
}
......
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