mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-07-29 10:11:00 -04:00
cargo fmt
(I keep forgetting that I've enabled cargo fmt checking on this repo.)
This commit is contained in:
parent
27395ecd4e
commit
900cb927f3
@ -1930,12 +1930,16 @@ impl http_serve::Entity for File {
|
|||||||
}
|
}
|
||||||
} else if self.0.type_ == Type::InitSegment {
|
} else if self.0.type_ == Type::InitSegment {
|
||||||
// FileBuilder::build() should have failed if there were no video_sample_entries.
|
// FileBuilder::build() should have failed if there were no video_sample_entries.
|
||||||
let ent = self.0.video_sample_entries.first().expect("no video_sample_entries");
|
let ent = self
|
||||||
|
.0
|
||||||
|
.video_sample_entries
|
||||||
|
.first()
|
||||||
|
.expect("no video_sample_entries");
|
||||||
let aspect = ent.aspect();
|
let aspect = ent.aspect();
|
||||||
hdrs.insert("X-Aspect",
|
hdrs.insert(
|
||||||
HeaderValue::try_from(
|
"X-Aspect",
|
||||||
format!("{}:{}", aspect.numer(), aspect.denom())
|
HeaderValue::try_from(format!("{}:{}", aspect.numer(), aspect.denom()))
|
||||||
).expect("no invalid chars in X-Aspect format")
|
.expect("no invalid chars in X-Aspect format"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user