# HG changeset patch # User diego # Date 1254734382 0 # Node ID 4aefe095faed6d70b160476ccf492e7f78dba40d # Parent a2289abc9e23b48a4eaea17d25647111744ad553 Fix pcm_read_seek () when the position it calculates is greater than 2 GB. pcm_read_seek() puts the return value of url_fseek() in an int and then compares < 0 to see if an error occurred; if the position is greater than 2 GB, the 32-bit signed int result will be < 0. Change the type of ret to int64_t to avoid the wraparound. patch by Daniel Verkamp, daniel drv nu diff -r a2289abc9e23 -r 4aefe095faed raw.c --- a/raw.c Mon Oct 05 08:38:39 2009 +0000 +++ b/raw.c Mon Oct 05 09:19:42 2009 +0000 @@ -219,8 +219,8 @@ int stream_index, int64_t timestamp, int flags) { AVStream *st; - int block_align, byte_rate, ret; - int64_t pos; + int block_align, byte_rate; + int64_t pos, ret; st = s->streams[0];