Commit a92d0fa5 authored by Laurent Aimar's avatar Laurent Aimar Committed by Martin Storsjö

Fixed off by one packet size allocation in the smacker demuxer.

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent e055932f
......@@ -306,7 +306,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
if (frame_size < 0)
return AVERROR_INVALIDDATA;
if (av_new_packet(pkt, frame_size + 768))
if (av_new_packet(pkt, frame_size + 769))
return AVERROR(ENOMEM);
if(smk->frm_size[smk->cur_frame] & 1)
palchange |= 2;
......
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