mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
100l, since we already check for buf_size == 769 we should also
handle buf_size < 769 instead of just crashing in smacker decoder. Originally committed as revision 11822 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3e368d726a
commit
909063f745
@ -355,7 +355,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
|
||||
int i;
|
||||
int stride;
|
||||
|
||||
if(buf_size == 769)
|
||||
if(buf_size <= 769)
|
||||
return 0;
|
||||
if(smk->pic.data[0])
|
||||
avctx->release_buffer(avctx, &smk->pic);
|
||||
|
Loading…
Reference in New Issue
Block a user