]> git.sesse.net Git - vlc/commitdiff
es_format_t: add i_level
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 22 Jan 2010 13:35:05 +0000 (14:35 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Sat, 23 Jan 2010 15:44:47 +0000 (16:44 +0100)
It indicates restrictions on the ES (resolution, bitrate, codec
features...), like the H264 level

include/vlc_es.h
src/misc/es_format.c

index 3c9260ce2562489d04623ad68a69e6dd33f991ee..3d1ec2fc04e60fde3c4476c0c365a76e07409a73 100644 (file)
@@ -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 */
index ab94ff96a2137f7178b9b1e5cbd75c1f761d3656..650b31591383d1c1da4039076ebeae9a39fe2d94 100644 (file)
@@ -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;