diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-10 14:43:31 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-10 14:43:31 +0000 |
commit | 3bb984987ccfb877a30d2e2daceb1f4c0a618178 (patch) | |
tree | ab1604a9500738f1d944219e791923ec2a779e6f /libavcodec | |
parent | 046703660d28b1f9c1897a9470fad062b0c881a4 (diff) | |
download | ffmpeg-3bb984987ccfb877a30d2e2daceb1f4c0a618178.tar.gz |
Hack: set the coded frame PTS to the incoming PTS.
This is not correct, but libtheora does not seem to provide a way
to get the correct value, and this is necessary to make encoding
produce sensible time stamps when encoded content is variable
FPS or the time base is simply different from FPS.
Somewhat fixes issue 1197.
Originally committed as revision 20199 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libtheoraenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index f0285956da..fb05e5a3d1 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -250,6 +250,9 @@ static int encode_frame( } memcpy(outbuf, o_packet.packet, o_packet.bytes); + // HACK: does not take codec delay into account (neither does the decoder though) + avc_context->coded_frame->pts= frame->pts; + return o_packet.bytes; } |