Don't bother decoding audio if none of it is mapped (#2809).
authorCarl Hetherington <cth@carlh.net>
Sun, 12 May 2024 23:20:27 +0000 (01:20 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 13 May 2024 21:03:04 +0000 (23:03 +0200)
commite2ea739fcaa8077975a8559f267a1b1377b7e100
tree19a6fa66ea10194d3e1fd64442c5f035810f0dea
parent63fd3d143387bc0dbbbe228955421a59239dbe5c
Don't bother decoding audio if none of it is mapped (#2809).

On a test adding subs from an MKV to an existing DCP this reduces
the processing time from ~2h to ~1m because it doesn't resample the
audio from the whole of the MKV, only to discard it.
src/lib/ffmpeg_decoder.cc