swf: Add VideoCodec::ScreenVideoV2 variant

This commit is contained in:
TÖRÖK Attila 2021-02-11 20:35:17 +01:00 committed by Mike Welsh
parent 2fbbbe81b8
commit 80b0bd3b33
3 changed files with 3 additions and 0 deletions

View File

@ -2627,6 +2627,7 @@ impl<'a> Reader<'a> {
3 => VideoCodec::ScreenVideo,
4 => VideoCodec::VP6,
5 => VideoCodec::VP6WithAlpha,
6 => VideoCodec::ScreenVideoV2,
_ => return Err(Error::invalid_data("Invalid video codec.")),
};
Ok(Tag::DefineVideoStream(DefineVideoStream {

View File

@ -1229,6 +1229,7 @@ pub enum VideoCodec {
ScreenVideo,
VP6,
VP6WithAlpha,
ScreenVideoV2,
}
#[derive(Clone, Debug, PartialEq)]

View File

@ -2567,6 +2567,7 @@ impl<W: Write> Writer<W> {
VideoCodec::ScreenVideo => 3,
VideoCodec::VP6 => 4,
VideoCodec::VP6WithAlpha => 5,
VideoCodec::ScreenVideoV2 => 6,
})?;
Ok(())
}