comparison libtheoraenc.c @ 10680:d569841bd1b7 libavcodec

Clarify comment: although still hacky, it is correct for existing libtheora
author conrad
date Sat, 12 Dec 2009 20:18:49 +0000
parents c1328f04458a
children 8a4984c5cacc
comparison
equal deleted inserted replaced
10679:c1328f04458a 10680:d569841bd1b7
334 av_log(avc_context, AV_LOG_ERROR, "encoded frame too large\n"); 334 av_log(avc_context, AV_LOG_ERROR, "encoded frame too large\n");
335 return -1; 335 return -1;
336 } 336 }
337 memcpy(outbuf, o_packet.packet, o_packet.bytes); 337 memcpy(outbuf, o_packet.packet, o_packet.bytes);
338 338
339 // HACK: does not take codec delay into account (neither does the decoder though) 339 // HACK: assumes no encoder delay, this is true until libtheora becomes
340 // multithreaded (which will be disabled unless explictly requested)
340 avc_context->coded_frame->pts = frame->pts; 341 avc_context->coded_frame->pts = frame->pts;
341 avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask); 342 avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask);
342 343
343 return o_packet.bytes; 344 return o_packet.bytes;
344 } 345 }