Revision ded2100e libavcodec/vp6.c

View differences:

libavcodec/vp6.c
602 602
    return 0;
603 603
}
604 604

  
605
static av_cold int vp6_decode_free(AVCodecContext *avctx)
606
{
607
    VP56Context *s = avctx->priv_data;
608
    int pt, ct, cg;
609

  
610
    vp56_free(avctx);
611

  
612
    for (pt=0; pt<2; pt++) {
613
        free_vlc(&s->dccv_vlc[pt]);
614
        free_vlc(&s->runv_vlc[pt]);
615
        for (ct=0; ct<3; ct++)
616
            for (cg=0; cg<6; cg++)
617
                free_vlc(&s->ract_vlc[pt][ct][cg]);
618
    }
619
    return 0;
620
}
621

  
605 622
AVCodec vp6_decoder = {
606 623
    "vp6",
607 624
    CODEC_TYPE_VIDEO,
......
609 626
    sizeof(VP56Context),
610 627
    vp6_decode_init,
611 628
    NULL,
612
    vp56_free,
629
    vp6_decode_free,
613 630
    vp56_decode_frame,
614 631
    CODEC_CAP_DR1,
615 632
    .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"),
......
623 640
    sizeof(VP56Context),
624 641
    vp6_decode_init,
625 642
    NULL,
626
    vp56_free,
643
    vp6_decode_free,
627 644
    vp56_decode_frame,
628 645
    CODEC_CAP_DR1,
629 646
    .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"),
......
637 654
    sizeof(VP56Context),
638 655
    vp6_decode_init,
639 656
    NULL,
640
    vp56_free,
657
    vp6_decode_free,
641 658
    vp56_decode_frame,
642 659
    CODEC_CAP_DR1,
643 660
    .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"),

Also available in: Unified diff