Mercurial > audlegacy
comparison Plugins/Input/wma/libffwma/common.h @ 1398:1ddaf20ab50e trunk
[svn] AltiVec support for WMA, by Luca "lu_zero" Barbato from Gentoo.
author | chainsaw |
---|---|
date | Thu, 13 Jul 2006 16:01:57 -0700 |
parents | cbdecaedd691 |
children |
comparison
equal
deleted
inserted
replaced
1397:86242883ddc7 | 1398:1ddaf20ab50e |
---|---|
922 } | 922 } |
923 #endif | 923 #endif |
924 | 924 |
925 #define CLAMP_TO_8BIT(d) ((d > 0xff) ? 0xff : (d < 0) ? 0 : d) | 925 #define CLAMP_TO_8BIT(d) ((d > 0xff) ? 0xff : (d < 0) ? 0 : d) |
926 | 926 |
927 /* avoid usage of various functions */ | |
928 /*#define malloc please_use_av_malloc | |
929 #define free please_use_av_free | |
930 #define realloc please_use_av_realloc*/ | |
931 | |
932 #define CHECKED_ALLOCZ(p, size)\ | 927 #define CHECKED_ALLOCZ(p, size)\ |
933 {\ | 928 {\ |
934 p= av_mallocz(size);\ | 929 p= av_mallocz(size);\ |
935 if(p==NULL && (size)!=0){\ | 930 if(p==NULL && (size)!=0){\ |
936 perror("malloc");\ | 931 perror("malloc");\ |
937 goto fail;\ | 932 goto fail;\ |
938 }\ | 933 }\ |
939 } | 934 } |
940 | 935 |
936 | |
937 | |
938 | |
941 #endif /* HAVE_AV_CONFIG_H */ | 939 #endif /* HAVE_AV_CONFIG_H */ |
942 | 940 |
943 #endif /* COMMON_H */ | 941 #endif /* COMMON_H */ |