projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95c4815
)
Added some FIXMEs.
author
Carl Hetherington
<cth@carlh.net>
Thu, 16 Apr 2020 21:33:50 +0000
(23:33 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 16 Apr 2020 21:33:50 +0000
(23:33 +0200)
src/lib/ffmpeg_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/ffmpeg_decoder.cc
b/src/lib/ffmpeg_decoder.cc
index 350362478e92dfb7522e9f8ffdd7d666ddd4d656..cfaf0361b9ab79da14f4f4ae841a5bd8a243cf9d 100644
(file)
--- a/
src/lib/ffmpeg_decoder.cc
+++ b/
src/lib/ffmpeg_decoder.cc
@@
-210,6
+210,9
@@
FFmpegDecoder::deinterleave_audio (shared_ptr<FFmpegAudioStream> stream) const
0, stream->stream(_format_context)->codec->channels, _frame->nb_samples, audio_sample_format (stream), 1
);
+ /* XXX: can't we just use _frame->nb_samples directly here? */
+ /* XXX: can't we use swr_convert() to do the format conversion? */
+
/* Deinterleave and convert to float */
/* total_samples and frames will be rounded down here, so if there are stray samples at the end