diff options
author | David Conrad <lessen42@gmail.com> | 2009-12-12 20:18:49 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-12-12 20:18:49 +0000 |
commit | a4914ac70880784d0e9bee814afac1235d1cd92b (patch) | |
tree | 67569f1a4b5653948ca67459055e5334d9bc9472 /libavcodec | |
parent | c39b94be600e8433a1de54b09d86704066efeb27 (diff) | |
download | ffmpeg-streaming-a4914ac70880784d0e9bee814afac1235d1cd92b.zip ffmpeg-streaming-a4914ac70880784d0e9bee814afac1235d1cd92b.tar.gz |
Clarify comment: although still hacky, it is correct for existing libtheora
Originally committed as revision 20817 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libtheoraenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 6a9dee1..ac015ff 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -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); |