[Ffmpeg-devel] Fix for overflow issue in mpegvideo.c
Martin Boehme
boehme
Mon Aug 1 09:34:19 CEST 2005
Michael Niedermayer wrote:
> On Tuesday 26 July 2005 16:15, Martin Boehme wrote:
>>Hm, my feeling, too... any chance of computing an upper limit on the
>>amount of data the encoder can spit out? (I'm not necessarily advocating
>>doing this... just interested...)
>
> 1 bit modb
> 1 bit modb2
> 2bit mb_type
> 6bit cbp
> 2bit dquant
> 1bit interlaced dct
> 1bit mv type
> 4bit field select
> 2*2*2*20bit motion vectors
> 6*64*30bit dct coefficoents (YV12! otherwise its more)
> 47bit video packet header
>
> -> 11745 bits per MB -> ~width*height*5.735
>
> but note, if width and height are small then the size of the various headers
> must be considered too ...
>
> [...]
Interesting... thanks! Looks as if Loren got pretty close to that limit,
then...
Martin
--
Martin B?hme
Inst. f. Neuro- and Bioinformatics
Ratzeburger Allee 160, D-23538 Luebeck
Phone: +49 451 500 5514
Fax: +49 451 500 5502
boehme at inb.uni-luebeck.de
More information about the ffmpeg-devel
mailing list