# HG changeset patch # User conrad # Date 1260649129 0 # Node ID d569841bd1b7502b877391799f2fd3e44153d52c # Parent c1328f04458a613ea3583aa832f432c00573b81f Clarify comment: although still hacky, it is correct for existing libtheora diff -r c1328f04458a -r d569841bd1b7 libtheoraenc.c --- a/libtheoraenc.c Sat Dec 12 20:18:46 2009 +0000 +++ b/libtheoraenc.c Sat Dec 12 20:18:49 2009 +0000 @@ -336,7 +336,8 @@ } memcpy(outbuf, o_packet.packet, o_packet.bytes); - // HACK: does not take codec delay into account (neither does the decoder though) + // HACK: assumes no encoder delay, this is true until libtheora becomes + // multithreaded (which will be disabled unless explictly requested) avc_context->coded_frame->pts = frame->pts; avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask);