mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-08 05:07:07 +00:00
Merge commit '0348e74c01a099a3787ae21df1c2a742fc846163'
* commit '0348e74c01a099a3787ae21df1c2a742fc846163': quickdraw: Skip the empty 512 byte header for images See: b453e768427969b170820e8e8fe51c84856563b2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b6e8166a48
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user