[FFmpeg-devel] [PATCH] mxf umid generation
Baptiste Coudurier
baptiste.coudurier
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:
>> Hi,
>>
>> 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
> libavutil/timer.h)
> 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...
Name: random_seed.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090307/0259e79b/attachment.asc>
More information about the ffmpeg-devel
mailing list