Clarify comment: although still hacky, it is correct for existing libtheora
authorDavid Conrad <lessen42@gmail.com>
Sat, 12 Dec 2009 20:18:49 +0000 (20:18 +0000)
committerDavid Conrad <lessen42@gmail.com>
Sat, 12 Dec 2009 20:18:49 +0000 (20:18 +0000)
Originally committed as revision 20817 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libtheoraenc.c

index 6a9dee1..ac015ff 100644 (file)
@@ -336,7 +336,8 @@ static int encode_frame(AVCodecContext* avc_context, uint8_t *outbuf,
     }
     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);