time & (s)rand is forbidden

Originally committed as revision 2954 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 21 years ago
parent d76f581ff5
commit 7d1bbcd42f
  1. 3
      libavcodec/common.h

@ -1276,6 +1276,9 @@ tend= rdtsc();\
#define malloc please_use_av_malloc
#define free please_use_av_free
#define realloc please_use_av_realloc
#define time time_is_forbidden_due_to_security_issues
#define rand rand_is_forbidden_due_to_state_trashing
#define srand srand_is_forbidden_due_to_state_trashing
#if !(defined(LIBAVFORMAT_BUILD) || defined(_FRAMEHOOK_H))
#define printf please_use_av_log
#define fprintf please_use_av_log

Loading…
Cancel
Save