Exemplo n.º 1
0
        internal static unsafe AVCodec *AvCodecFindDecoder(AvCodecId codecId)
        {
            var decoder = ffmpeg.avcodec_find_decoder(codecId);

            if (decoder == null)
            {
                throw new FfmpegException(
                          String.Format("Failed to find a decoder for CodecId {0}.", codecId),
                          "avcodec_find_decoder");
            }
            return(decoder);
        }
Exemplo n.º 2
0
        public static AvCodec FindDecoder(AvCodecId id)
        {
            AVCodec *codec = ffmpeg.avcodec_find_decoder((AVCodecID)id);

            return(codec == null ? null : new AvCodec(codec));
        }