[FFmpeg-devel] [PATCH] av_assert should you AV_LOG_PANIC.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Dec 3 20:43:48 CET 2012
The description of AV_LOG_PANIC 100% matches what av_assert
does, while AV_LOG_FATAL does not really.
So I think it makes sense to replace it.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavutil/avassert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/avassert.h b/libavutil/avassert.h
index e100d0b..41f5e0e 100644
--- a/libavutil/avassert.h
+++ b/libavutil/avassert.h
@@ -36,7 +36,7 @@
*/
#define av_assert0(cond) do { \
if (!(cond)) { \
- av_log(NULL, AV_LOG_FATAL, "Assertion %s failed at %s:%d\n", \
+ av_log(NULL, AV_LOG_PANIC, "Assertion %s failed at %s:%d\n", \
AV_STRINGIFY(cond), __FILE__, __LINE__); \
abort(); \
} \
--
1.7.10.4
More information about the ffmpeg-devel
mailing list