ensure first mux frame is key frame

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-21 13:27:18 +08:00
parent 9489877c78
commit eff5dd2e03
2 changed files with 18 additions and 6 deletions

View File

@@ -94,6 +94,7 @@ impl EncoderApi for HwEncoder {
frames.push(EncodedVideoFrame {
data: Bytes::from(frame.data),
pts: frame.pts as _,
key:frame.key == 1,
..Default::default()
});
}