avformat/avidec: Increase dshow_block_align use threshold by 1
authorGabor Nagy <maillist@sign-el-soft.hu>
Wed, 10 Dec 2014 01:59:25 +0000 (02:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Dec 2014 02:18:30 +0000 (03:18 +0100)
Fixes 00.avi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c

index 78a6dea..e8c2730 100644 (file)
@@ -126,7 +126,7 @@ static inline int get_duration(AVIStream *ast, int len)
 {
     if (ast->sample_size)
         return len;
-    else if (ast->dshow_block_align)
+    else if (ast->dshow_block_align > 1)
         return (len + ast->dshow_block_align - 1) / ast->dshow_block_align;
     else
         return 1;