-/* avoid usage of various functions */
-#undef malloc
-#define malloc please_use_av_malloc
-#undef free
-#define free please_use_av_free
-#undef realloc
-#define realloc please_use_av_realloc
-#undef time
-#define time time_is_forbidden_due_to_security_issues
-#undef rand
-#define rand rand_is_forbidden_due_to_state_trashing_use_av_random
-#undef srand
-#define srand srand_is_forbidden_due_to_state_trashing_use_av_init_random
-#undef random
-#define random random_is_forbidden_due_to_state_trashing_use_av_random
-#undef sprintf
-#define sprintf sprintf_is_forbidden_due_to_security_issues_use_snprintf
-#undef strcat
-#define strcat strcat_is_forbidden_due_to_security_issues_use_av_strlcat
-#undef exit
-#define exit exit_is_forbidden
-#if !(defined(LIBAVFORMAT_BUILD) || defined(FFMPEG_FRAMEHOOK_H))
-#undef printf
-#define printf please_use_av_log
-#undef fprintf
-#define fprintf please_use_av_log
-#undef puts
-#define puts please_use_av_log
-#undef perror
-#define perror please_use_av_log_instead_of_perror
-#endif
-
-#define CHECKED_ALLOCZ(p, size)\
-{\
- p= av_mallocz(size);\
- if(p==NULL && (size)!=0){\
- av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
- goto fail;\
- }\
-}
-
-#ifndef HAVE_LLRINT
-static av_always_inline av_const long long llrint(double x)
-{
- return rint(x);
-}
-#endif /* HAVE_LLRINT */
-
-#ifndef HAVE_LRINT
-static av_always_inline av_const long int lrint(double x)
-{
- return rint(x);
-}
-#endif /* HAVE_LRINT */
-
-#ifndef HAVE_LRINTF
-static av_always_inline av_const long int lrintf(float x)
-{
- return (int)(rint(x));
-}
-#endif /* HAVE_LRINTF */
-
-#ifndef HAVE_ROUND
-static av_always_inline av_const double round(double x)
-{
- return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
-}
-#endif /* HAVE_ROUND */
-
-#ifndef HAVE_ROUNDF
-static av_always_inline av_const float roundf(float x)
-{
- return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
-}
-#endif /* HAVE_ROUNDF */
-
-#endif /* FFMPEG_INTERNAL_H */