On Mon, Jun 04, 2012 at 11:21:02AM +0200, Benjamin Larsson wrote:
> On 06/02/2012 09:09 PM, Kostya Shishkov wrote:
> >      }
> >@@ -169,6 +173,20 @@ static av_cold int imc_decode_init(AVCodecContext 
> >*avctx)
> >      }
> >      q->one_div_log2 = 1 / log(2);
> >
> >+    memcpy(q->cyclTab,  cyclTab,  sizeof(cyclTab));
> >+    memcpy(q->cyclTab2, cyclTab2, sizeof(cyclTab2));
> >+    if (avctx->codec_id == CODEC_ID_IAC) {
> >+        q->cyclTab[29]  = 31;
> >+        q->cyclTab2[31] = 28;
> >+    }
> >+    if (avctx->codec_id == CODEC_ID_IMC) {
> >+        memcpy(q->weights1, imc_weights1, sizeof(imc_weights1));
> >+        memcpy(q->weights2, imc_weights2, sizeof(imc_weights2));
> >+    } else {
> >+        memcpy(q->weights1, iac_weights1, sizeof(iac_weights1));
> >+        memcpy(q->weights2, iac_weights2, sizeof(iac_weights2));
> >+    }
> 
> Merge it in the previous check.
> 
> Otherwise patch OK.

applied with that change
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to