avformat/avidec: Increase dshow_block_align use threshold by 1

Fixes 00.avi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/150/head
Gabor Nagy 10 years ago committed by Michael Niedermayer
parent 1397cb002d
commit ae8168074e
  1. 2
      libavformat/avidec.c

@ -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;

Loading…
Cancel
Save