[FFmpeg-devel] [RFC] av_assert
Thu May 17 22:14:46 CEST 2007
as we av_abort, and we are using assert not only for debug, I propose to
have an own av_assert macro. A pro is that now it uses av_log, thus in
some applications the error doesn't gets along unnoticed (as it could
happen with fprintf), think about a GUI based application.
The attached patch adds the macro, but doesn't changes the assert()'s to
av_assert() in the code.
The output is slightly different:
aes: aes.c:212: main: Assertion `rct == 0x3' failed.
Assertion 'rct == 0x3' failed in main at aes.c:212
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 829 bytes
Desc: not available
More information about the ffmpeg-devel