Commit 42d8c298 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: higher precision timestamps

parent 9aa91e0f
...@@ -2,6 +2,8 @@ ver 0.16.5 (2010/??/??) ...@@ -2,6 +2,8 @@ ver 0.16.5 (2010/??/??)
* pcm_format: fix 32-to-24 bit conversion (the "silence" bug) * pcm_format: fix 32-to-24 bit conversion (the "silence" bug)
* input: * input:
- rewind: reduce heap usage - rewind: reduce heap usage
* decoder:
- ffmpeg: higher precision timestamps
ver 0.16.4 (2011/09/01) ver 0.16.4 (2011/09/01)
......
...@@ -220,7 +220,8 @@ time_from_ffmpeg(int64_t t, const AVRational time_base) ...@@ -220,7 +220,8 @@ time_from_ffmpeg(int64_t t, const AVRational time_base)
{ {
assert(t != (int64_t)AV_NOPTS_VALUE); assert(t != (int64_t)AV_NOPTS_VALUE);
return av_rescale_q(t, time_base, (AVRational){1, 1}); return (double)av_rescale_q(t, time_base, (AVRational){1, 1024})
/ (double)1024;
} }
static enum decoder_command static enum decoder_command
......
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