@@ -243,9 +243,8 @@ class ScreencastEncoder::VPXCodec {
243
243
244
244
if (pkt->kind == VPX_CODEC_CX_FRAME_PKT) {
245
245
m_writer->writeFrame (pkt);
246
- bool keyframe = (pkt->data .frame .flags & VPX_FRAME_IS_KEY) != 0 ;
247
246
++m_frameCount;
248
- fprintf (stderr, " #%03d %spts=%" PRId64 " sz=%zd\n " , m_frameCount, keyframe ? " [K] " : " " , pkt->data .frame .pts , pkt->data .frame .sz );
247
+ // fprintf(stderr, " #%03d %spts=%" PRId64 " sz=%zd\n", m_frameCount, (pkt->data.frame.flags & VPX_FRAME_IS_KEY) != 0 ? "[K] " : "", pkt->data.frame.pts, pkt->data.frame.sz);
249
248
m_pts += pkt->data .frame .duration ;
250
249
}
251
250
}
@@ -261,7 +260,7 @@ class ScreencastEncoder::VPXCodec {
261
260
262
261
m_writer->finish ();
263
262
fclose (m_file);
264
- fprintf (stderr, " ScreencastEncoder::finish %d frames\n " , m_frameCount);
263
+ // fprintf(stderr, "ScreencastEncoder::finish %d frames\n", m_frameCount);
265
264
}
266
265
267
266
RefPtr<nsIThread> m_encoderQueue;
@@ -327,7 +326,7 @@ RefPtr<ScreencastEncoder> ScreencastEncoder::create(nsCString& errorString, cons
327
326
}
328
327
329
328
std::unique_ptr<VPXCodec> vpxCodec (new VPXCodec (codec, cfg, file));
330
- fprintf (stderr, " ScreencastEncoder initialized with: %s\n " , vpx_codec_iface_name (codec_interface));
329
+ // fprintf(stderr, "ScreencastEncoder initialized with: %s\n", vpx_codec_iface_name(codec_interface));
331
330
return new ScreencastEncoder (std::move (vpxCodec), scale, margin);
332
331
}
333
332
@@ -347,7 +346,7 @@ void ScreencastEncoder::flushLastFrame()
347
346
348
347
void ScreencastEncoder::encodeFrame (const webrtc::VideoFrame& videoFrame)
349
348
{
350
- fprintf (stderr, " ScreencastEncoder::encodeFrame\n " );
349
+ // fprintf(stderr, "ScreencastEncoder::encodeFrame\n");
351
350
flushLastFrame ();
352
351
353
352
m_lastFrame = std::make_unique<VPXFrame>(videoFrame.video_frame_buffer (), m_scale, m_margin);
0 commit comments