Opened 9 years ago

#1840 new defect

validity check for stream_seek block Playing shoutcast stream

Reported by: kuh3h3@… Owned by: reimar
Priority: normal Component: streaming
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


reimar introduced new patch

Modified: trunk/stream/stream.h
--- trunk/stream/stream.h Sun Dec 12 11:37:15 2010 (r32701)
+++ trunk/stream/stream.h Sun Dec 12 12:45:47 2010 (r32702)
@@ -292,6 +292,10 @@ inline static int stream_seek(stream_t *

mp_dbg(MSGT_DEMUX, MSGL_DBG3, "seek to 0x%qX\n",(long long)pos);

+ if (pos < 0) {
+ mp_msg(MSGT_DEMUX, MSGL_ERR, "Invalid seek to negative position!\n");
+ pos = 0;
+ }


off_t x=pos-(s->pos-s-≥buf_len);

but this patch block Playing shoutcast stream.

$ mplayer
MPlayer SVN-r32728-4.4.1 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Resolving for AF_INET...
Connecting to server[]: 80...

Cache size set to 320 KBytes
Cache fill: 0.01% (39 bytes)

Invalid seek to negative position!

Exiting... (End of file)

Change History (0)

Note: See TracTickets for help on using tickets.