Commit b6e8166a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0348e74c'

* commit '0348e74c':
  quickdraw: Skip the empty 512 byte header for images

See: b453e768Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 5d9873ec 0348e74c
......@@ -129,6 +129,10 @@ static int decode_frame(AVCodecContext *avctx,
&& AV_RB32(&avpkt->data[522]) == 0x001102FF)
bytestream2_skip(&gbc, 512);
/* PICT images start with a 512 bytes empty header */
if (bytestream2_peek_be32(&gbc) == 0)
bytestream2_skip(&gbc, 512);
/* smallest PICT header */
if (bytestream2_get_bytes_left(&gbc) < 40) {
av_log(avctx, AV_LOG_ERROR, "Frame is too small %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