changeset 6317:2f44646383c8 libavcodec

100l, since we already check for buf_size == 769 we should also handle buf_size < 769 instead of just crashing in smacker decoder.
author reimar
date Sat, 02 Feb 2008 22:34:44 +0000
parents 80f5ff30ba58
children 73c09e922744
files smacker.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/smacker.c	Sat Feb 02 22:31:11 2008 +0000
+++ b/smacker.c	Sat Feb 02 22:34:44 2008 +0000
@@ -355,7 +355,7 @@
     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);