# HG changeset patch # User reimar # Date 1237063854 0 # Node ID 430cf07e7203fb0cd3fc89734f4e45e0df35e9f9 # Parent 2f7b32083fb0765b0b20826a38ee54f939fd5195 Make pcm_read_seek treat negative time stamps as 0, this avoids incorrectly seeking before data_offset and is more consistent with how the generic index seeking code handles it. diff -r 2f7b32083fb0 -r 430cf07e7203 raw.c --- a/raw.c Sat Mar 14 16:30:51 2009 +0000 +++ b/raw.c Sat Mar 14 20:50:54 2009 +0000 @@ -232,6 +232,7 @@ if (block_align <= 0 || byte_rate <= 0) return -1; + if (timestamp < 0) timestamp = 0; /* compute the position by aligning it to block_align */ pos = av_rescale_rnd(timestamp * byte_rate,