[FFmpeg-devel] [PATCH] mxf umid generation
Sat Mar 7 23:48:49 CET 2009
On 3/6/2009 7:44 PM, Michael Niedermayer wrote:
> On Fri, Mar 06, 2009 at 07:28:55PM -0800, Baptiste Coudurier wrote:
>> It seems some products really check umid and base themself on its
>> uniqueness, so it seems better to actually try to generate a unique number.
>> Is the approach in the patch acceptable ? If no,
>> any other suggestion ?
> yes, add a random_seed.c/h
> that does:
> 1. try to get a uint32 from reading /dev/(u)random
> 2. try to get a uint32 from LSB of rdtsc (and similar for ppc/bfin see
> 3. md5 or sha1 of the first frame or extradata
Like this ?
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer http://www.ffmpeg.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel