]> git.nihav.org Git - nihav.git/commitdiff
gdv: audio base is also 1/fps
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 6 Apr 2021 15:56:14 +0000 (17:56 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 6 Apr 2021 15:56:14 +0000 (17:56 +0200)
nihav-game/src/demuxers/gdv.rs

index 24a588694bea773776f7705c0be8c11666d5b00f..de4e9934a88cb6c6d4bc45d7322b566aa4a89f9c 100644 (file)
@@ -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;