We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c77c302 commit b3625f6Copy full SHA for b3625f6
util.js
@@ -37,8 +37,12 @@ export async function readVideoFileInfo(ffprobePath, p) {
37
let rotation = parseInt(stream.tags && stream.tags.rotate, 10);
38
39
// If we can't find rotation, try side_data_list
40
- if (Number.isNaN(rotation) && Array.isArray(stream.side_data_list) && stream.side_data_list[0] && stream.side_data_list[0].rotation) {
41
- rotation = parseInt(stream.side_data_list[0].rotation, 10);
+ if (Number.isNaN(rotation) && Array.isArray(stream.side_data_list)) {
+ stream.side_data_list.forEach(element => {
42
+ if (element.rotation) {
43
+ rotation = parseInt(element.rotation, 10);
44
+ }
45
+ });
46
}
47
48
return {
0 commit comments