aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-04-06 17:56:14 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-04-06 17:56:14 +0200
commit8c53a0966102af7c6d37ab24181a90f8ede02566 (patch)
tree3b89dbabfabfb8e45d16cb22bc4f430e9b99111f
parent1ef35f7db87bedd55ce3c833e62ec6857250fa7e (diff)
downloadnihav-8c53a0966102af7c6d37ab24181a90f8ede02566.tar.gz
gdv: audio base is also 1/fps
-rw-r--r--nihav-game/src/demuxers/gdv.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-game/src/demuxers/gdv.rs b/nihav-game/src/demuxers/gdv.rs
index 24a5886..de4e993 100644
--- a/nihav-game/src/demuxers/gdv.rs
+++ b/nihav-game/src/demuxers/gdv.rs
@@ -91,7 +91,7 @@ impl<'a> DemuxCore<'a> for GremlinVideoDemuxer<'a> {
let ahdr = NAAudioInfo::new(u32::from(rate), channels as u8, if depth == 16 { SND_S16_FORMAT } else { SND_U8_FORMAT }, 2);
let ainfo = NACodecInfo::new(if packed != 0 { "gdv-audio" } else { "pcm" },
NACodecTypeInfo::Audio(ahdr), None);
- self.a_id = strmgr.add_stream(NAStream::new(StreamType::Audio, 1, ainfo, 1, u32::from(rate), 0));
+ self.a_id = strmgr.add_stream(NAStream::new(StreamType::Audio, 1, ainfo, 1, u32::from(fps), 0));
self.asize = (((rate / fps) * channels * (depth / 8)) >> packed) as usize;
self.apacked = (aflags & 8) != 0;