Commit e1755082 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20199 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 29248ef2
...@@ -250,6 +250,9 @@ static int encode_frame( ...@@ -250,6 +250,9 @@ static int encode_frame(
} }
memcpy(outbuf, o_packet.packet, o_packet.bytes); 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; return o_packet.bytes;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment