summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2009-12-12 20:18:49 +0000
committerDavid Conrad <lessen42@gmail.com>2009-12-12 20:18:49 +0000
commita4914ac70880784d0e9bee814afac1235d1cd92b (patch)
tree67569f1a4b5653948ca67459055e5334d9bc9472 /libavcodec
parentc39b94be600e8433a1de54b09d86704066efeb27 (diff)
downloadffmpeg-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.c3
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);
OpenPOWER on IntegriCloud