[FFmpeg-devel] [PATCH] Fix bug reported on ticket #1742, audio PTS issue

Michael Niedermayer michaelni at gmx.at
Tue Sep 18 22:36:40 CEST 2012


On Tue, Sep 18, 2012 at 10:43:34AM +0900, Nikola Vranic wrote:
> 

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

fixed differently

thanks for debuging&analyzing the bug

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120918/e024fb2d/attachment.asc>


More information about the ffmpeg-devel mailing list