remove first frame fallback if repeat (#9267)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
7a1157f1b0
commit
4150036589
@ -947,7 +947,9 @@ fn handle_one_frame(
|
|||||||
} else {
|
} else {
|
||||||
3
|
3
|
||||||
};
|
};
|
||||||
if first || *encode_fail_counter >= max_fail_times {
|
let repeat = !encoder.latency_free();
|
||||||
|
// repeat encoders can reach max_fail_times on the first frame
|
||||||
|
if (first && !repeat) || *encode_fail_counter >= max_fail_times {
|
||||||
*encode_fail_counter = 0;
|
*encode_fail_counter = 0;
|
||||||
if encoder.is_hardware() {
|
if encoder.is_hardware() {
|
||||||
encoder.disable();
|
encoder.disable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user