On Sun, Sep 08, 2013 at 12:52:42PM -0400, Justin Ruggles wrote:
> On 09/07/2013 03:12 PM, Kostya Shishkov wrote:
> > +            if (avctx->block_align < MSN_MIN_BLOCK_SIZE ||
> > +                avctx->block_align > GSM_MS_BLOCK_SIZE  ||
> > +                (avctx->block_align < MSN_MIN_BLOCK_SIZE) % 3) {
> 
> I don't get it. Why a comparison % 3?

Because block sizes are increased by 3 - 41, 44, 47, ..., 62, 65
If you see mode selection below as
 (GSM_MS_BLOCK_SIZE - avctx->block_align) / 3
it's for the same reason.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to