OSDN Git Service

The convertion between bit and byte is 8 not 60.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Feb 2010 15:19:19 +0000 (15:19 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 3 Feb 2010 15:19:19 +0000 (15:19 +0000)
Fixes wrong cursor key seek distances.

Originally committed as revision 21627 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffplay.c

index 593a6f7..7aa742d 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2371,7 +2371,7 @@ static void event_loop(void)
                         }else
                             pos = url_ftell(cur_stream->ic->pb);
                         if (cur_stream->ic->bit_rate)
-                            incr *= cur_stream->ic->bit_rate / 60.0;
+                            incr *= cur_stream->ic->bit_rate / 8.0;
                         else
                             incr *= 180000.0;
                         pos += incr;