Index: libmpdemux/demux_nuv.c =================================================================== --- libmpdemux/demux_nuv.c (revision 20729) +++ libmpdemux/demux_nuv.c (working copy) @@ -74,8 +74,6 @@ float start_time = MAX_TIME; float target_time = start_time + rel_seek_secs * 1000; /* target_time, start_time are ms, rel_seek_secs s */ - orig_pos = stream_tell ( demuxer->stream ); - if ( rel_seek_secs > 0 ) { /* Seeking forward */ @@ -83,6 +81,8 @@ while(current_time < target_time ) { + orig_pos = stream_tell ( demuxer->stream ); + if (stream_read ( demuxer->stream, (char*)& rtjpeg_frameheader, sizeof ( rtjpeg_frameheader ) ) < sizeof(rtjpeg_frameheader)) return; /* EOF */ le2me_rtframeheader(&rtjpeg_frameheader);