Logo Search packages:      
Sourcecode: libtheora version File versions

void theora_info_clear ( theora_info c  ) 

Clear a theora_info structure. All values within the given theora_info structure are cleared, and associated internal codec setup data is freed.

Parameters:
c A theora_info struct to initialize.

Definition at line 72 of file toplevel.c.

References theora_info::codec_setup, and theora_info_clear().

Referenced by theora_clear(), and theora_info_clear().

                                       {
  codec_setup_info *ci=c->codec_setup;
  if(ci){
    if(ci->qmats) _ogg_free(ci->qmats);
    ClearHuffmanTrees(ci->HuffRoot);
    _ogg_free(ci);
  }
  memset(c,0,sizeof(*c));
}


Generated by  Doxygen 1.6.0   Back to index