swf: Add VideoCodec::ScreenVideoV2 variant
This commit is contained in:
parent
2fbbbe81b8
commit
80b0bd3b33
|
@ -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 {
|
||||
|
|
|
@ -1229,6 +1229,7 @@ pub enum VideoCodec {
|
|||
ScreenVideo,
|
||||
VP6,
|
||||
VP6WithAlpha,
|
||||
ScreenVideoV2,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
|
|
@ -2567,6 +2567,7 @@ impl<W: Write> Writer<W> {
|
|||
VideoCodec::ScreenVideo => 3,
|
||||
VideoCodec::VP6 => 4,
|
||||
VideoCodec::VP6WithAlpha => 5,
|
||||
VideoCodec::ScreenVideoV2 => 6,
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue