From 8ef3f4b5f0cbcf8eb95ce01ea3e1e53b3e377904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Wed, 7 Dec 2022 19:40:01 +0100 Subject: [PATCH] Added DefineVideoStream codecId handled as enum of codecs in raw editation --- CHANGELOG.md | 1 + .../jpexs/decompiler/flash/tags/DefineVideoStreamTag.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 737d8cdd2..ae866c801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. - DebugId tag proper display and editation - [#1564], [#1676], [#1697], [#1893] Display of DefineVideoStream tags with VLC player - List of treenode subitems on otherwise empty panel (with 32x32 icons) +- DefineVideoStream codecId handled as enum of codecs in raw editation ### Fixed - [#1897] Close menu button without selecting specific item diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java index 3e7d570b8..456044d4c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineVideoStreamTag.java @@ -37,6 +37,7 @@ import com.jpexs.decompiler.flash.types.ColorTransform; import com.jpexs.decompiler.flash.types.MATRIX; import com.jpexs.decompiler.flash.types.RECT; import com.jpexs.decompiler.flash.types.SOUNDINFO; +import com.jpexs.decompiler.flash.types.annotations.EnumValue; import com.jpexs.decompiler.flash.types.annotations.Internal; import com.jpexs.decompiler.flash.types.annotations.Reserved; import com.jpexs.decompiler.flash.types.annotations.SWFType; @@ -100,6 +101,10 @@ public class DefineVideoStreamTag extends DrawableTag implements BoundedTag, Tim public boolean videoFlagsSmoothing; @SWFType(BasicType.UI8) + @EnumValue(value = DefineVideoStreamTag.CODEC_SORENSON_H263, text = "Sorenson H.263") + @EnumValue(value = DefineVideoStreamTag.CODEC_SCREEN_VIDEO, text = "Screen video") + @EnumValue(value = DefineVideoStreamTag.CODEC_VP6, text = "VP6") + @EnumValue(value = DefineVideoStreamTag.CODEC_VP6_ALPHA, text = "VP6 video with alpha channel") public int codecID; @Internal