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

Diego Biurrun diego
Tue Oct 21 00:49:12 CEST 2008


On Mon, Oct 20, 2008 at 09:38:47AM -0700, Pascal Massimino wrote:
> 
> patch against r15655 attached...
> 
> --- libavformat/flvdec.c	2008-10-20 09:23:13.328892000 -0700
> +++ libavformat/flvdec.c	2008-10-20 09:23:13.330886000 -0700
> @@ -106,7 +106,7 @@
>  
> -static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, unsigned int max_pos, int depth) {
> +static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth) {
> @@ -208,7 +208,7 @@
>  
> -static int flv_read_metabody(AVFormatContext *s, unsigned int next_pos) {
> +static int flv_read_metabody(AVFormatContext *s, int64_t next_pos) {

Why int64_t and not uint64_t, it was unsigned before...

Diego




More information about the ffmpeg-devel mailing list