From 0ddbf4fce49821c4eb801cf05e93f05ab1c684a1 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 9 Jan 2022 12:23:06 +0100 Subject: [PATCH] sndplay: fix small raw streams detection --- sndplay/src/demux.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.39.5