public override void decode(MP4InputStream inStream)
 {
     // 3gpp or iTunes
     if (parent.getType() == BoxType.USER_DATA_BOX)
     {
         base.decode(inStream);
         languageCode = BoxUtils.getLanguageCode(inStream.readBytes(2));
         var b = inStream.readTerminated((int)getLeft(inStream), 0);
         genre = Encoding.UTF8.GetString(b);
     }
     else
     {
         readChildren(inStream);
     }
 }
Exemple #2
0
        public override void decode(MP4InputStream inStream)
        {
            // 3gpp or iTunes
            if (parent.getType() == BoxType.USER_DATA_BOX)
            {
                base.decode(inStream);

                // TODO: what to do with both?
                long entity   = inStream.readBytes(4);
                long criteria = inStream.readBytes(4);
                languageCode = BoxUtils.getLanguageCode(inStream.readBytes(2));
                var b = inStream.readTerminated((int)getLeft(inStream), 0);
                rating = Encoding.UTF8.GetString(b);
            }
            else
            {
                readChildren(inStream);
            }
        }