[FFmpeg-cvslog] avformat/avidec: Increase dshow_block_align use threshold by 1

Gabor Nagy git at videolan.org
Wed Dec 10 03:32:42 CET 2014


ffmpeg | branch: master | Gabor Nagy <maillist at sign-el-soft.hu> | Wed Dec 10 02:59:25 2014 +0100| [ae8168074eb1c8230d9c6482102ca08a70a9c4b0] | committer: Michael Niedermayer

avformat/avidec: Increase dshow_block_align use threshold by 1

Fixes 00.avi

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae8168074eb1c8230d9c6482102ca08a70a9c4b0
---

 libavformat/avidec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 78a6dea..e8c2730 100644
--- a/libavformat/avidec.c
+++ b/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;



More information about the ffmpeg-cvslog mailing list