| 162 | } |
| 163 | |
| 164 | void avcodec_free_context(AVCodecContext **pavctx) |
| 165 | { |
| 166 | AVCodecContext *avctx = *pavctx; |
| 167 | |
| 168 | if (!avctx) |
| 169 | return; |
| 170 | |
| 171 | ff_codec_close(avctx); |
| 172 | |
| 173 | av_freep(&avctx->extradata); |
| 174 | av_freep(&avctx->subtitle_header); |
| 175 | av_freep(&avctx->intra_matrix); |
| 176 | av_freep(&avctx->chroma_intra_matrix); |
| 177 | av_freep(&avctx->inter_matrix); |
| 178 | av_freep(&avctx->rc_override); |
| 179 | av_channel_layout_uninit(&avctx->ch_layout); |
| 180 | |
| 181 | av_freep(pavctx); |
| 182 | } |
| 183 | |
| 184 | const AVClass *avcodec_get_class(void) |
| 185 | { |