From 439e57598218df59bea8e8923e8ac3793c1e650a Mon Sep 17 00:00:00 2001 From: Vivian Lim Date: Sun, 29 Nov 2020 15:12:48 -0800 Subject: [PATCH] make audio encode failure non-fatal so we can run to the end at least --- examples/ffmpeg_recorder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ffmpeg_recorder.rs b/examples/ffmpeg_recorder.rs index b78c962..f40f0ef 100644 --- a/examples/ffmpeg_recorder.rs +++ b/examples/ffmpeg_recorder.rs @@ -186,7 +186,7 @@ impl MyEmulator { self.video_encoder.encode(&vframe, &mut out).unwrap(); } while let Ok(..) = self.audio_filter.get("out").unwrap().sink().frame(&mut aframe) { - self.audio_encoder.encode(&aframe, &mut out).unwrap(); + self.audio_encoder.encode(&aframe, &mut out);//.unwrap(); } }