projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo.
[dcpomatic.git]
/
src
/
lib
/
ffmpeg_file_encoder.cc
diff --git
a/src/lib/ffmpeg_file_encoder.cc
b/src/lib/ffmpeg_file_encoder.cc
index 7bac7b1302bb1860218386a559b1eb8658bf0506..e9809008098536ee6591904e2047b378683d22d1 100644
(file)
--- a/
src/lib/ffmpeg_file_encoder.cc
+++ b/
src/lib/ffmpeg_file_encoder.cc
@@
-393,7
+393,8
@@
FFmpegFileEncoder::audio_frame (int size)
DCPOMATIC_ASSERT (false);
}
DCPOMATIC_ASSERT (false);
}
- frame->pts = _audio_frames / (av_q2d (_audio_stream->time_base) * _audio_frame_rate);
+ DCPOMATIC_ASSERT (_audio_stream->time_base.num == 1);
+ frame->pts = _audio_frames * _audio_stream->time_base.den / _audio_frame_rate;
AVPacket packet;
av_init_packet (&packet);
AVPacket packet;
av_init_packet (&packet);