[xiph-commits] r12432 - trunk/ffmpeg2theora
j at svn.xiph.org
j at svn.xiph.org
Mon Feb 5 13:55:47 PST 2007
Author: j
Date: 2007-02-05 13:55:44 -0800 (Mon, 05 Feb 2007)
New Revision: 12432
Modified:
trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
only print sync information in debug mode
Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c 2007-02-05 21:51:07 UTC (rev 12431)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c 2007-02-05 21:55:44 UTC (rev 12432)
@@ -663,16 +663,20 @@
/* it should be larger than half a frame to
avoid excessive dropping and duplicating */
if (delta < -0.7) {
+#ifdef DEBUG
fprintf(stderr,
"Frame dropped to maintain sync\n");
+#endif
break;
}
if (delta > 0.7) {
//dups = lrintf(delta);
dups = (int)delta;
+#ifdef DEBUG
fprintf(stderr,
"%d duplicate %s added to maintain sync\n",
dups, (dups == 1) ? "frame" : "frames");
+#endif
}
}
More information about the commits
mailing list