예제 #1
0
        public unsafe MediaRational Reduce()
        {
            MediaRational result = this;

            av_reduce(&result.Num, &result.Den, Num, Den, int.MaxValue);
            return(result);
        }
예제 #2
0
 /// <summary>
 /// <see cref="av_opt_set_q(void*, string, AVRational, int)"/>
 /// </summary>
 public void Set(string name, MediaRational value, OptionSearchFlags searchFlags = OptionSearchFlags.None) =>
 av_opt_set_q(_obj, name, value, (int)searchFlags).ThrowIfError();