1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

avformat/avidec: Increase dshow_block_align use threshold by 1

Fixes 00.avi

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Gabor Nagy 2014-12-10 02:59:25 +01:00 committed by Michael Niedermayer
parent 1397cb002d
commit ae8168074e

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