Revision e48a0966

View differences:

libavutil/internal.h
249 249
#define perror please_use_av_log_instead_of_perror
250 250
#endif
251 251

  
252
#define CHECKED_ALLOC(p, size)\
253
{\
254
    p= av_malloc(size);\
255
    if(p==NULL && (size)!=0){\
256
        av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
257
        goto fail;\
258
    }\
259
}
260

  
252 261
#define CHECKED_ALLOCZ(p, size)\
253 262
{\
254 263
    p= av_mallocz(size);\

Also available in: Unified diff