[FFmpeg-devel] [PATCH] mxf umid generation
Sat Mar 7 04:44:55 CET 2009
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
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
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel