aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-01-23 10:18:08 +0000
committerDiego Biurrun <diego@biurrun.de>2008-01-23 10:18:08 +0000
commit79bfd0ef766b620c9ad5568d8f8cadfa0516498a (patch)
tree43f9f76771c8408f334a207b99e3141ce8b96e05
parent6a339972af7b68708a31c1edc9050727ab0eeaf7 (diff)
downloadffmpeg-79bfd0ef766b620c9ad5568d8f8cadfa0516498a.tar.gz
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
-rw-r--r--libavcodec/rangecoder.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c
index 829d9ab04d..34cda723f3 100644
--- a/libavcodec/rangecoder.c
+++ b/libavcodec/rangecoder.c
@@ -111,6 +111,7 @@ int ff_rac_terminate(RangeCoder *c){
#ifdef TEST
#define SIZE 10240
+#undef random
int main(void){
RangeCoder c;
uint8_t b[9*SIZE];
@@ -133,7 +134,7 @@ START_TIMER
STOP_TIMER("put_rac")
}
- ff_put_rac_terminate(&c);
+ ff_rac_terminate(&c);
ff_init_range_decoder(&c, b, SIZE);