[FFmpeg-devel] AVRandomState usage in ffserver/RTP/RTSP
Baptiste Coudurier
baptiste.coudurier
Tue Jan 20 21:01:36 CET 2009
Stefano Sabatini wrote:
> On date Monday 2009-01-19 00:18:04 +0100, Stefano Sabatini encoded:
>> On date Tuesday 2009-01-06 22:50:44 +0100, Stefano Sabatini encoded:
> [...]
>>> Index: ffmpeg/ffserver.c
>>> ===================================================================
>>> --- ffmpeg.orig/ffserver.c 2009-01-05 17:24:43.000000000 +0100
>>> +++ ffmpeg/ffserver.c 2009-01-05 17:31:35.000000000 +0100
>>> @@ -4468,6 +4468,7 @@
>>> int main(int argc, char **argv)
>>> {
>>> struct sigaction sigact;
>>> + struct timeval tv;
>>>
>>> av_register_all();
>>>
>>> @@ -4483,7 +4484,8 @@
>>>
>>> unsetenv("http_proxy"); /* Kill the http_proxy */
>>>
>>> - av_random_init(&random_state, av_gettime() + (getpid() << 16));
>>> + gettimeofday(&tv, NULL);
>>> + av_random_init(&random_state, tv.tv_usec);
>>>
>>> memset(&sigact, 0, sizeof(sigact));
>>> sigact.sa_handler = handle_child_exit;
>> Ping?
>
> Ping2.
>
I'd say it's better, yes, any other opinion ?
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list