Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
9ec8f4f4
Commit
9ec8f4f4
authored
Mar 27, 2022
by
Jean-Baptiste Mardelle
Browse files
Ignore audio files album art
parent
d6d061f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/cliploadtask.cpp
View file @
9ec8f4f4
...
...
@@ -660,6 +660,19 @@ void ClipLoadTask::run()
char
property
[
200
];
snprintf
(
property
,
sizeof
(
property
),
"meta.media.%d.stream.frame_rate"
,
vindex
);
fps
=
producer
->
get_double
(
property
);
QString
codecName
=
QStringLiteral
(
"meta.media.%1.codec.name"
).
arg
(
vindex
);
QString
codec
=
producer
->
get
(
codecName
.
toUtf8
().
constData
());
if
(
codec
==
QLatin1String
(
"mjpeg"
))
{
int
frame_rate
=
producer
->
get_int
(
"meta.media.frame_rate_num"
);
if
(
frame_rate
==
90000
)
{
// This is an audio file with cover art, ignore video stream
producer
->
set
(
"video_index"
,
-
1
);
producer
->
set
(
"set.test_image"
,
1
);
vindex
=
-
1
;
hasVideo
=
false
;
checkProfile
=
false
;
}
}
}
// Check for variable frame rate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment