/// <summary>
        /// <see cref="avformat_find_stream_info(AVFormatContext*, AVDictionary**)"/>
        /// </summary>
        public MediaDictionary FindStreamInfo()
        {
            AVDictionary *dict;

            avformat_find_stream_info(this, &dict);
            return(MediaDictionary.FromNative(dict, isOwner: true));
        }
Пример #2
0
        /// <summary>
        /// <see cref="av_packet_unpack_dictionary(byte*, int, AVDictionary**)"/>
        /// </summary>
        public static MediaDictionary UnpackDictionary(Span <byte> data)
        {
            AVDictionary *dict = null;

            fixed(byte *ptr = data)
            {
                av_packet_unpack_dictionary(ptr, data.Length, &dict).ThrowIfError();
            }

            return(MediaDictionary.FromNative(dict, isOwner: true));
        }