[vlc-devel] [PATCH 3/6] es_format_t: add i_level
Rafaël Carré
rafael.carre at gmail.com
Fri Jan 22 15:25:23 CET 2010
It indicates restrictions on the ES (resolution, bitrate, codec
features...), like the H264 level
---
include/vlc_es.h | 1 +
src/misc/es_format.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 3c9260c..3d1ec2f 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -256,6 +256,7 @@ struct es_format_t
unsigned int i_bitrate; /**< bitrate of this ES */
int i_profile; /**< codec specific information (like real audio flavor, mpeg audio layer, h264 profile ...) */
+ int i_level; /**< codec specific information: indicates maximum restrictions on the stream (resolution, bitrate, codec features ...) */
bool b_packetized; /**< wether the data is packetized (ie. not truncated) */
int i_extra; /**< length in bytes of extra data pointer */
diff --git a/src/misc/es_format.c b/src/misc/es_format.c
index ab94ff9..650b315 100644
--- a/src/misc/es_format.c
+++ b/src/misc/es_format.c
@@ -242,6 +242,7 @@ void es_format_Init( es_format_t *fmt,
fmt->i_codec = i_codec;
fmt->i_original_fourcc = 0;
fmt->i_profile = -1;
+ fmt->i_level = -1;
fmt->i_id = -1;
fmt->i_group = 0;
fmt->i_priority = 0;
--
1.6.3.3
More information about the vlc-devel
mailing list