mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 07:34:57 +00:00
aconv: Override encoder in output metadata
After all, we encoded this file :^)
This commit is contained in:
parent
34978b364b
commit
c853a73ae2
1 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
||||||
if (writer.has_value()) {
|
if (writer.has_value()) {
|
||||||
(*writer)->sample_count_hint(input_loader->total_samples());
|
(*writer)->sample_count_hint(input_loader->total_samples());
|
||||||
TRY((*writer)->set_metadata(input_loader->metadata()));
|
|
||||||
|
auto metadata = input_loader->metadata();
|
||||||
|
metadata.replace_encoder_with_serenity();
|
||||||
|
TRY((*writer)->set_metadata(metadata));
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Maybe use a generalized interface for this as well if the need arises.
|
// FIXME: Maybe use a generalized interface for this as well if the need arises.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue