[FFmpeg-devel] fix for >2GB files in flvdec.c

Baptiste Coudurier baptiste.coudurier
Mon Oct 20 19:08:54 CEST 2008


Hi Pascal,

Pascal Massimino wrote:
> Hi everybody,
> 
> patch against r15655 attached...
> 
 > [...]
>  
  > @@ -317,7 +318,7 @@
>      if(size == 0)
>          continue;
>  
> -    next= size + url_ftell(s->pb);
> +    next= url_ftell(s->pb) + size;

Cosmetics ?

>      if (type == FLV_TAG_TYPE_AUDIO) {
>          is_audio=1;
> @@ -370,8 +371,8 @@
>      // if not streamed and no duration from metadata then seek to end to find the duration from the timestamps
>      if(!url_is_streamed(s->pb) && s->duration==AV_NOPTS_VALUE){
>          int size;
> -        const int pos= url_ftell(s->pb);
> -        const int fsize= url_fsize(s->pb);
> +        const int64_t pos= url_ftell(s->pb);
> +        const int64_t fsize= url_fsize(s->pb);

Pos seems to be uselessly redeclared here, this can be commited 
separately I guess.

Im not maintainer, Michael will confirm.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA




More information about the ffmpeg-devel mailing list