[FFmpeg-cvslog] avutil/utils: run ff_check_pixfmt_descriptors() only when ASSERT_LEVEL is > 0

Michael Niedermayer git at videolan.org
Sat Dec 7 02:12:16 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec  6 23:51:58 2013 +0100| [f52852098d7a3a01dbc1e5d76925b9d69ae9b087] | committer: Michael Niedermayer

avutil/utils: run ff_check_pixfmt_descriptors() only when ASSERT_LEVEL is > 0

this safes about 0.1ms

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f52852098d7a3a01dbc1e5d76925b9d69ae9b087
---

 libavutil/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/utils.c b/libavutil/utils.c
index dc84162..4c82503 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -51,7 +51,9 @@ unsigned avutil_version(void)
         av_log(NULL, AV_LOG_ERROR, "Libavutil has been linked to a broken llrint()\n");
     }
 
+#if defined(ASSERT_LEVEL) && ASSERT_LEVEL > 0
     ff_check_pixfmt_descriptors();
+#endif
     checks_done = 1;
     return LIBAVUTIL_VERSION_INT;
 }



More information about the ffmpeg-cvslog mailing list