Browse Source

Add #undef random and call the right function to fix test program compilation.

Originally committed as revision 11600 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 18 years ago
parent
commit
79bfd0ef76
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/rangecoder.c

+ 2
- 1
libavcodec/rangecoder.c View File

@@ -111,6 +111,7 @@ int ff_rac_terminate(RangeCoder *c){


#ifdef TEST #ifdef TEST
#define SIZE 10240 #define SIZE 10240
#undef random
int main(void){ int main(void){
RangeCoder c; RangeCoder c;
uint8_t b[9*SIZE]; uint8_t b[9*SIZE];
@@ -133,7 +134,7 @@ START_TIMER
STOP_TIMER("put_rac") STOP_TIMER("put_rac")
} }


ff_put_rac_terminate(&c);
ff_rac_terminate(&c);


ff_init_range_decoder(&c, b, SIZE); ff_init_range_decoder(&c, b, SIZE);




Loading…
Cancel
Save