[vlc-devel] [PATCH 1/4] vlc_block: remove BLOCK_FLAG_NO_KEYFRAME

Francois Cartegnie fcvlcdev at free.fr
Wed Apr 12 17:07:42 CEST 2017


only used internally by ts muxer
---
 include/vlc_block.h   | 2 --
 modules/mux/mpeg/ts.c | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_block.h b/include/vlc_block.h
index 79cb851..9b9aa14 100644
--- a/include/vlc_block.h
+++ b/include/vlc_block.h
@@ -77,8 +77,6 @@
 #define BLOCK_FLAG_HEADER        0x0020
 /** This is the last block of the frame */
 #define BLOCK_FLAG_END_OF_FRAME  0x0040
-/** This is not a key frame for bitrate shaping */
-#define BLOCK_FLAG_NO_KEYFRAME   0x0080
 /** This block contains the last part of a sequence  */
 #define BLOCK_FLAG_END_OF_SEQUENCE 0x0100
 /** This block contains a clock reference */
diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 5fa30de..e93ed5e 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -192,6 +192,8 @@ static const char *const ts_standards_list_text[] =
   #error "MAX_SDT_DESC < MAX_PMT"
 #endif
 
+#define BLOCK_FLAG_NO_KEYFRAME (1 << BLOCK_FLAG_PRIVATE_SHIFT) /* This is not a key frame for bitrate shaping */
+
 vlc_module_begin ()
     set_description( N_("TS muxer (libdvbpsi)") )
     set_shortname( "MPEG-TS")
-- 
2.9.3



More information about the vlc-devel mailing list