From 8ddf6aa4f2bd2ace4ee96b07325f49530db64d1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Fri, 22 Jan 2010 14:35:05 +0100 Subject: [PATCH] es_format_t: add i_level 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(+) diff --git a/include/vlc_es.h b/include/vlc_es.h index 3c9260ce25..3d1ec2fc04 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 ab94ff96a2..650b315913 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; -- 2.39.2