2017-10-03 15:50 GMT+02:00 Ingo Brückl <i...@wupperonline.de>: > The number of bits from bit #m to #n is n - m plus 1.
> -#define MIDDLE_BITS(k, m, n) LAST_BITS((k) >> (m), ((n) - (m))) > +#define MIDDLE_BITS(k, m, n) LAST_BITS((k) >> (m), ((n) - (m) + 1)) I cannot comment on this patch but if this fixes a sample of yours, please add a fate test. Thank you, Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel