Commit ae816807 authored by Gabor Nagy's avatar Gabor Nagy Committed by Michael Niedermayer

avformat/avidec: Increase dshow_block_align use threshold by 1

Fixes 00.avi
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1397cb00
...@@ -126,7 +126,7 @@ static inline int get_duration(AVIStream *ast, int len) ...@@ -126,7 +126,7 @@ static inline int get_duration(AVIStream *ast, int len)
{ {
if (ast->sample_size) if (ast->sample_size)
return len; 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; return (len + ast->dshow_block_align - 1) / ast->dshow_block_align;
else else
return 1; return 1;
......
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