From: Kostya Shishkov Date: Sun, 9 Jan 2022 11:23:06 +0000 (+0100) Subject: sndplay: fix small raw streams detection X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=0ddbf4fce49821c4eb801cf05e93f05ab1c684a1;p=nihav-player.git sndplay: fix small raw streams detection --- diff --git a/sndplay/src/demux.rs b/sndplay/src/demux.rs index de9a067..9878500 100644 --- a/sndplay/src/demux.rs +++ b/sndplay/src/demux.rs @@ -126,7 +126,8 @@ impl<'a> DemuxerObject<'a> { } br.seek(SeekFrom::Start(0)).unwrap(); let mut buf = vec![0; 1048576]; - let size = br.peek_buf(&mut buf).unwrap(); + let size = br.read_buf_some(&mut buf).unwrap(); + br.seek(SeekFrom::Start(0)).unwrap(); let mut pname = ""; for pinfo in reg.pkt_reg.iter() {