[FFmpeg-devel] [PATCH] Fix bug reported on ticket #1742, audio PTS issue
Nikola Vranic
nikola.vranic at rt-rk.com
Tue Sep 18 03:43:34 CEST 2012
-------------- next part --------------
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 3e85d4e..2e90e9a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -118,7 +118,7 @@ static int guess_ni_flag(AVFormatContext *s);
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 > 4){
return (len + ast->dshow_block_align - 1)/ast->dshow_block_align;
}else
return 1;
More information about the ffmpeg-devel
mailing list