Reorder v2 fix (#283)

* Fix ffmpeg bug (doesn't move image streams)

* Ignore reorder if png

* Fix lint
This commit is contained in:
HaveAGitGat 2022-03-21 21:33:16 +01:00 committed by GitHub
parent e4d0ea0207
commit 3e4176423c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,10 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
if (String(sortType.getValue(streams[j])).includes(String(items[i]))) {
if (
streams[j].codec_long_name
&& streams[j].codec_long_name.includes('image')
&& (
streams[j].codec_long_name.includes('image')
|| streams[j].codec_name.includes('png')
)
) {
// do nothing, ffmpeg bug, doesn't move image streams
} else {