update hwcodec, use ms as pts like vpx (#8422)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-06-20 13:57:56 +08:00
committed by GitHub
parent 7956953669
commit 30bd4e1cef
5 changed files with 24 additions and 17 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ impl RecorderApi for HwRecorder {
width: ctx.width,
height: ctx.height,
is265: ctx.format == CodecFormat::H265,
framerate: crate::hwcodec::DEFAULT_TIME_BASE[1] as _,
framerate: crate::hwcodec::DEFAULT_FPS as _,
})
.map_err(|_| anyhow!("Failed to create hardware muxer"))?;
Ok(HwRecorder {