Commit a3d5b2c4 authored by philipjsg's avatar philipjsg

Add an av_abort macro that aborts, but also prints out the location of the abort.

Helps track down bugs.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@576 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f07a39fc
......@@ -150,6 +150,8 @@ inline void dprintf(const char* fmt,...) {}
#endif /* HAVE_AV_CONFIG_H */
#define av_abort() do { fprintf(stderr, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0)
/* assume b>0 */
#define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b))
#define ABS(a) ((a) >= 0 ? (a) : (-(a)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment