Mercurial > libavcodec.hg
comparison h264.c @ 1341:6e5d4ec4f3ab libavcodec
unwanted second definition of CHECKED_ALLOCZ
author | al3x |
---|---|
date | Fri, 04 Jul 2003 17:16:53 +0000 |
parents | c05c381a9c47 |
children | a0c0bee12abf |
comparison
equal
deleted
inserted
replaced
1340:09b8fe0f0139 | 1341:6e5d4ec4f3ab |
---|---|
2102 h->pred16x16[HOR_PRED8x8 ]= pred16x16_horizontal_c; | 2102 h->pred16x16[HOR_PRED8x8 ]= pred16x16_horizontal_c; |
2103 h->pred16x16[PLANE_PRED8x8 ]= pred16x16_plane_c; | 2103 h->pred16x16[PLANE_PRED8x8 ]= pred16x16_plane_c; |
2104 h->pred16x16[LEFT_DC_PRED8x8]= pred16x16_left_dc_c; | 2104 h->pred16x16[LEFT_DC_PRED8x8]= pred16x16_left_dc_c; |
2105 h->pred16x16[TOP_DC_PRED8x8 ]= pred16x16_top_dc_c; | 2105 h->pred16x16[TOP_DC_PRED8x8 ]= pred16x16_top_dc_c; |
2106 h->pred16x16[DC_128_PRED8x8 ]= pred16x16_128_dc_c; | 2106 h->pred16x16[DC_128_PRED8x8 ]= pred16x16_128_dc_c; |
2107 } | |
2108 | |
2109 //FIXME factorize | |
2110 #define CHECKED_ALLOCZ(p, size)\ | |
2111 {\ | |
2112 p= av_mallocz(size);\ | |
2113 if(p==NULL){\ | |
2114 perror("malloc");\ | |
2115 goto fail;\ | |
2116 }\ | |
2117 } | 2107 } |
2118 | 2108 |
2119 static void free_tables(H264Context *h){ | 2109 static void free_tables(H264Context *h){ |
2120 av_freep(&h->intra4x4_pred_mode); | 2110 av_freep(&h->intra4x4_pred_mode); |
2121 av_freep(&h->non_zero_count); | 2111 av_freep(&h->non_zero_count); |