Revision 7bc9090a libavcodec/common.h

View differences:

libavcodec/common.h
999 999
#define free please_use_av_free
1000 1000
#define realloc please_use_av_realloc
1001 1001

  
1002
#define CHECKED_ALLOCZ(p, size)\
1003
{\
1004
    p= av_mallocz(size);\
1005
    if(p==NULL){\
1006
        perror("malloc");\
1007
        goto fail;\
1008
    }\
1009
}
1010

  
1002 1011
#endif /* HAVE_AV_CONFIG_H */
1003 1012

  
1004 1013
#endif /* COMMON_H */

Also available in: Unified diff