lavc: add avcodec_free_context().