Revision ded2100e libavcodec/vp56.c

View differences:

libavcodec/vp56.c
26 26

  
27 27
#include "vp56.h"
28 28
#include "vp56data.h"
29
#include "get_bits.h"
30 29

  
31 30

  
32 31
void vp56_init_dequant(VP56Context *s, int quantizer)
......
696 695
av_cold int vp56_free(AVCodecContext *avctx)
697 696
{
698 697
    VP56Context *s = avctx->priv_data;
699
    int pt;
700 698

  
701 699
    av_freep(&s->qscale_table);
702 700
    av_freep(&s->above_blocks);
......
708 706
        avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN2]);
709 707
    if (s->framep[VP56_FRAME_PREVIOUS]->data[0])
710 708
        avctx->release_buffer(avctx, s->framep[VP56_FRAME_PREVIOUS]);
711

  
712
    for (pt=0; pt < 2; pt++) {
713
        int ct, cg;
714
        free_vlc(&s->dccv_vlc[pt]);
715
        free_vlc(&s->runv_vlc[pt]);
716
        for (ct=0; ct<3; ct++)
717
            for (cg = 0; cg < 6; cg++)
718
                free_vlc(&s->ract_vlc[pt][ct][cg]);
719
    }
720

  
721 709
    return 0;
722 710
}

Also available in: Unified diff