# HG changeset patch # User arpi # Date 1051734249 0 # Node ID 1a26db279e501b54f841f6d3ca6386a7f5db4e3b # Parent 1dfe4dab4a42edb6e404c56ff2e1aadcce22b693 removed nonsense stream_reset/seek in check_file() diff -r 1dfe4dab4a42 -r 1a26db279e50 libmpdemux/demux_bmp.c --- a/libmpdemux/demux_bmp.c Wed Apr 30 20:20:51 2003 +0000 +++ b/libmpdemux/demux_bmp.c Wed Apr 30 20:24:09 2003 +0000 @@ -23,9 +23,6 @@ // Check if a file is a BMP file depending on whether starts with 'BM' int bmp_check_file(demuxer_t *demuxer) { - stream_reset(demuxer->stream); - stream_seek(demuxer->stream, 0); - if (stream_read_word(demuxer->stream) == (('B' << 8) | 'M')) return 1; else diff -r 1dfe4dab4a42 -r 1a26db279e50 libmpdemux/demux_rawdv.c --- a/libmpdemux/demux_rawdv.c Wed Apr 30 20:20:51 2003 +0000 +++ b/libmpdemux/demux_rawdv.c Wed Apr 30 20:24:09 2003 +0000 @@ -68,8 +68,6 @@ mp_msg(MSGT_DEMUX,MSGL_V,"Checking for DV\n"); - stream_reset(demuxer->stream); - stream_seek(demuxer->stream, 0); bytes_read=stream_read(demuxer->stream,tmp_buffer,DV_PAL_FRAME_SIZE); if ((bytes_read!=DV_PAL_FRAME_SIZE) && (bytes_read!=DV_NTSC_FRAME_SIZE)) return 0; diff -r 1dfe4dab4a42 -r 1a26db279e50 libmpdemux/demux_roq.c --- a/libmpdemux/demux_roq.c Wed Apr 30 20:20:51 2003 +0000 +++ b/libmpdemux/demux_roq.c Wed Apr 30 20:24:09 2003 +0000 @@ -50,9 +50,6 @@ // 84 10 FF FF FF FF xx xx int roq_check_file(demuxer_t *demuxer) { - stream_reset(demuxer->stream); - stream_seek(demuxer->stream, 0); - if ((stream_read_dword(demuxer->stream) == 0x8410FFFF) && ((stream_read_dword(demuxer->stream) & 0xFFFF0000) == 0xFFFF0000)) return 1;