diff huffyuv.c @ 8308:61cfb1dcfae5 libavcodec

More POSIX _t namespace cleanup.
author michael
date Fri, 12 Dec 2008 16:21:23 +0000
parents 4525dcd81357
children 7a463923ecd1
line wrap: on
line diff
--- a/huffyuv.c	Fri Dec 12 09:59:00 2008 +0000
+++ b/huffyuv.c	Fri Dec 12 16:21:23 2008 +0000
@@ -265,16 +265,16 @@
 typedef struct {
     uint64_t val;
     int name;
-} heap_elem_t;
+} HeapElem;
 
-static void heap_sift(heap_elem_t *h, int root, int size)
+static void heap_sift(HeapElem *h, int root, int size)
 {
     while(root*2+1 < size) {
         int child = root*2+1;
         if(child < size-1 && h[child].val > h[child+1].val)
             child++;
         if(h[root].val > h[child].val) {
-            FFSWAP(heap_elem_t, h[root], h[child]);
+            FFSWAP(HeapElem, h[root], h[child]);
             root = child;
         } else
             break;
@@ -282,7 +282,7 @@
 }
 
 static void generate_len_table(uint8_t *dst, uint64_t *stats, int size){
-    heap_elem_t h[size];
+    HeapElem h[size];
     int up[2*size];
     int len[2*size];
     int offset, i, next;