Commit dee935fb authored by reimar's avatar reimar

100l, since we already check for buf_size == 769 we should also

handle buf_size < 769 instead of just crashing in smacker decoder.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11822 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4749e0f4
...@@ -355,7 +355,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const ...@@ -355,7 +355,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
int i; int i;
int stride; int stride;
if(buf_size == 769) if(buf_size <= 769)
return 0; return 0;
if(smk->pic.data[0]) if(smk->pic.data[0])
avctx->release_buffer(avctx, &smk->pic); avctx->release_buffer(avctx, &smk->pic);
......
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